Re: New test function replace_conf() to get rid of unlink/append pattern

From: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: New test function replace_conf() to get rid of unlink/append pattern
Date: 2026-10-22 13:34:05
Message-ID: CAJTYsWV8Z73GvteLm4A77Od65HPWJ-h1tE_4KB0PTz=n5Cu_Ow@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Thu, 22 Oct 2026 at 15:37, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>
> > On 12 Oct 2026, at 21:15, Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com> wrote:
>
> > Thanks for the patch! It makes sense to me to have this function, makes
> > the tests easier to follow.
>
> Thanks for review!
>
> > Small nit on the replace vs rewrite thing you mentioned: should we change
> > the below comment too to use "replacing"?
>
> Fixed.
>
> > Also, I noticed the forked-backend SKIP block in
> > src/test/ssl/t/004_sni.pl still skips 11 tests. Since we're removing the
> > ok(unlink(...)) assertion, ig that should be 10 now.
>
> Right. The skip number isn't actually used for no_plan plans which we use so
> the number isn't particularly useful, but since we do specify it the number
> should match so: Fixed.

A v tiny nit: with v2 it looks like that number should be 8 now.

> > On 13 Oct 2026, at 10:30, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com> wrote:
>
> > LGTM. We might add these as well:
> >
> > diff --git a/src/test/ssl/t/SSL/Server.pm b/src/test/ssl/t/SSL/Server.pm
>
> Ah, good catch, fixed.

Thanks for updating the patch, it looks good to me.

Regards,
Ayush

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2026-10-22 13:39:25 Re: [DEPARSE] EXPLAIN prints another ModifyTable's RETURNING aliases in a SubPlan
Previous Message Baji Shaik 2026-10-22 13:32:05 Re: Fix rescan costing of single-batch hash joins