Re: speed up a logical replica setup

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: Euler Taveira <euler(at)eulerto(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, "kuroda(dot)hayato(at)fujitsu(dot)com" <kuroda(dot)hayato(at)fujitsu(dot)com>, Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>
Subject: Re: speed up a logical replica setup
Date: 2024-03-20 06:14:24
Message-ID: CANhcyEUvW9pNziRZqc92jmAaeG=NYyzzP-vEfejL=bX8EGC2ew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Hi,
>
> > I'm attaching a new version (v30) that adds:
> >
> > * 3 new options (--publication, --subscription, --replication-slot) to assign
> > names to the objects. The --database option used to ignore duplicate names,
> > however, since these new options rely on the number of database options to
> > match the number of object name options, it is forbidden from now on. The
> > duplication is also forbidden for the object names to avoid errors earlier.
> > * rewrite the paragraph related to unusuable target server after
> > pg_createsubscriber fails.
> > * Vignesh reported an issue [1] related to reaching the recovery stop point
> > before the consistent state is reached. I proposed a simple patch that fixes
> > the issue.
> >
> > [1] https://www.postgresql.org/message-id/CALDaNm3VMOi0GugGvhk3motghaFRKSWMCSE2t3YX1e%2BMttToxg%40mail.gmail.com
> >
>
> I have added a top-up patch v30-0003. The issue in [1] still exists in
> the v30 patch. I was not able to come up with an approach to handle it
> in the code, so I have added it to the documentation in the warning
> section. Thoughts?
> I am not changing the version as I have not made any changes in
> v30-0001 and v30-0002.
>
> [1]: https://www.postgresql.org/message-id/CAHv8Rj+5mzK9Jt+7ECogJzfm5czvDCCd5jO1_rCx0bTEYpBE5g@mail.gmail.com

There was some whitespace error in the v30-0003 patch. Updated the patch.

Thanks and regards,
Shlok Kyal

Attachment Content-Type Size
v31-0001-pg_createsubscriber-creates-a-new-logical-replic.patch application/x-patch 99.0 KB
v31-0002-Stop-the-target-server-earlier.patch application/x-patch 1.9 KB
v31-0003-Document-a-limitation-of-pg_createsubscriber.patch application/x-patch 1.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-03-20 06:35:22 Re: What is a typical precision of gettimeofday()?
Previous Message Peter Eisentraut 2024-03-20 06:02:48 Re: Regression tests fail with musl libc because libpq.so can't be loaded