Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided.

From: Shubham Khanna <khannashubham1197(at)gmail(dot)com>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Ajin Cherian <itsajin(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided.
Date: 2025-03-18 12:04:18
Message-ID: CAHv8RjKTdWf+QPXsekQChBsSZj2xnT7uoyVDW3+YogkpDPi-Xg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 18, 2025 at 4:25 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
> On Mon, 17 Mar 2025 at 16:51, Ashutosh Bapat
> <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> wrote:
> >
> > On Mon, Mar 17, 2025 at 4:02 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> > >
> > > On Mon, 17 Mar 2025 at 11:28, Shubham Khanna
> > > <khannashubham1197(at)gmail(dot)com> wrote:
> > > >
> > > > On Fri, Mar 14, 2025 at 5:43 PM Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> wrote:
> > > >
> > > > Fixed.
> > > >
> > > > The attached patch contains the suggested changes.
> > >
> > > I feel like we're trying to address two separate tasks in this thread:
> > > a) Enhancing pg_createsubscriber to automatically retrieve databases
> > > when none is provided. b) Refactoring all pg_createsubscriber tests.
> > >
> > > I suggest we keep this thread focused solely on retrieving all
> > > databases and start a new thread for test refactoring. This will allow
> > > us to tackle each task separately and ensure a cleaner commit.
> >
> > I was expecting that the argument validation tests will go in one test
> > - existing as well as the ones for --all. But that's not how the patch
> > is splitting them. It has split only the existing test. I am fine if
> > we add a new test for --all option as the [patch does and leave the
> > existing test as is. Cramming everything in one test makes it
> > unmaintainable, though.
>
> For this patch, let's add an additional test case to
> 040_pg_createsubscriber.pl and aim to commit it soon, as the rest of
> the changes look good. I agree that the test split you suggested is
> necessary, but let's handle that in a separate thread.
>

I have added an additional test case to 040_pg_createsubscriber.pl as suggested.

The attached patch contains the suggested changes.

Thanks and regards,
Shubham Khanna.

Attachment Content-Type Size
v14-0001-Enhance-pg_createsubscriber-to-fetch-and-append-.patch application/octet-stream 17.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ilia Evdokimov 2025-03-18 12:09:19 Re: Proposal - Allow extensions to set a Plan Identifier
Previous Message Andrei Lepikhov 2025-03-18 12:02:08 Re: making EXPLAIN extensible