From: | "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Jeff Davis <pgsql(at)j-davis(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, Amit Khandekar <amitdkhan(dot)pg(at)gmail(dot)com>, fabriziomello(at)gmail(dot)com, tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>, Rahila Syed <rahila(dot)syed(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Minimal logical decoding on standbys |
Date: | 2023-04-06 13:03:39 |
Message-ID: | 6797892f-6eaf-c62a-a556-6fd6e3e14b2a@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On 4/6/23 2:23 PM, Amit Kapila wrote:
> On Thu, Apr 6, 2023 at 11:29 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> Thinking some more on this, I think such a slot won't decode any other
> records. During CreateInitDecodingContext->ReplicationSlotReserveWal,
> for standby's, we use lastReplayedEndRecPtr as restart_lsn. This
> should be a record before parameter_change record in the above
> scenario. So, ideally, the first record to decode by such a walsender
> should be parameter_change which will anyway error out. So, this
> shouldn't be a problem.
>
Agree.
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | Masahiko Sawada | 2023-04-06 13:26:33 | Re: Initial Schema Sync for Logical Replication |
Previous Message | Drouvot, Bertrand | 2023-04-06 13:02:26 | Re: Minimal logical decoding on standbys |