From: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> |
---|---|
To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
Cc: | Euler Taveira <euler(at)eulerto(dot)com>, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, vignesh C <vignesh21(at)gmail(dot)com>, 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>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Subject: | Re: speed up a logical replica setup |
Date: | 2024-02-06 10:26:21 |
Message-ID: | CANhcyEWMUTKdB9yfFWfcFH8ZnsC73krHn9K58ECA7a=AU1BjpA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
> My top-up patches fixes some issues.
>
> v15-0001: same as v14-0001
> === experimental patches ===
> v15-0002: Use replication connections when we connects to the primary.
> Connections to standby is not changed because the standby/subscriber
> does not require such type of connection, in principle.
> If we can accept connecting to subscriber with replication mode,
> this can be simplified.
> v15-0003: Remove -P and use primary_conninfo instead. Same as v13-0004
> v15-0004: Check whether the target is really standby. This is done by pg_is_in_recovery()
> v15-0005: Avoid stopping/starting standby server in dry_run mode.
> I.e., approach a). in #10 is used.
> v15-0006: Overwrite recovery parameters. I.e., aproach b). in #9 is used.
>
> [1]: https://www.postgresql.org/message-id/b315c7da-7ab1-4014-a2a9-8ab6ae26017c%40app.fastmail.com
>
I have created a topup patch 0007 on top of v15-0006.
I revived the patch which removes -S option and adds some options
instead. The patch add option for --port, --username and --socketdir.
This patch also ensures that anyone cannot connect to the standby
during the pg_createsubscriber, by setting listen_addresses,
unix_socket_permissions, and unix_socket_directories.
Thanks and Regards,
Shlok Kyal
Attachment | Content-Type | Size |
---|---|---|
v16-0005-Avoid-stopping-starting-standby-server-in-dry_ru.patch | application/x-patch | 2.6 KB |
v16-0004-Check-whether-the-target-is-really-standby.patch | application/x-patch | 1.2 KB |
v16-0003-Remove-P-and-use-primary_conninfo-instead.patch | application/x-patch | 13.0 KB |
v16-0006-Overwrite-recovery-parameters.patch | application/x-patch | 1.3 KB |
v16-0002-Use-replication-connection-when-we-connect-to-th.patch | application/x-patch | 5.2 KB |
v16-0001-Creates-a-new-logical-replica-from-a-standby-ser.patch | application/x-patch | 78.2 KB |
v16-0007-Remove-S-option-to-force-unix-domain-connection.patch | application/x-patch | 16.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dilip Kumar | 2024-02-06 10:26:45 | Re: Synchronizing slots from primary to standby |
Previous Message | Ильясов Ян | 2024-02-06 10:21:53 | RE: Memory leak fix in rmtree.c |