| From: | Alena Vinter <dlaaren8(at)gmail(dot)com> |
|---|---|
| To: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Ilyasov Ian <ianilyasov(at)outlook(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Resetting recovery target parameters in pg_createsubscriber |
| Date: | 2025-11-25 06:45:56 |
| Message-ID: | CAGWv16+KwkDzS1-Wj-w_5O5cYCBgqVA5MacTHek_zO27sDrnOQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
It seems my previous message isn't visible in the thread. I can see
Robert's reply, but not the original message he was responding to. I'm
resending the message and all attachments to ensure it's saved in the
thread.
On Thu, 13 Nov 2025 at 19:45, Alena Vinter <dlaaren8(at)gmail(dot)com> wrote:
> Hi everyone!
>
> Robert, here's a realistic scenario where the issue occurs:
> 1. Start with a primary and physical standby
> 2. Convert the standby to a logical replica using `pg_createsubscriber`
> 3. Later, create a new physical standby from a backup of this logical
> replica
> 4. The new standby fails to start because it cannot reach consistency point
>
> The root cause is that `pg_createsubscriber` leaves behind recovery
> parameters that interfere with the new standby's startup process, causing
> recovery to stop before reaching a consistency point.
>
> To demonstrate this, I've expanded the existing '
> 040_pg_createsubscriber.pl' test to include this scenario. I've also
> attached a standalone TAP test below for easier verification of the
> specific failure case.
>
> ---
> Regards,
> Alena Vinter
>
| Attachment | Content-Type | Size |
|---|---|---|
| 041_node_from_backup_after_pg_createsubscriber.pl | application/x-perl | 2.9 KB |
| v8-0002-doc-Add-warning-about-leftover-recovery-parameters-i.patch | text/x-patch | 1.9 KB |
| v8-0001-Reseting-recovery-target-parameters-in-pg_createsubs.patch | text/x-patch | 9.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | wenhui qiu | 2025-11-25 07:03:22 | Re: Add 64-bit XIDs into PostgreSQL 15 |
| Previous Message | Amul Sul | 2025-11-25 06:37:32 | Re: pg_waldump: support decoding of WAL inside tarfile |