Re: Minimal logical decoding on standbys - Mailing list pgsql-hackers

From Drouvot, Bertrand
Subject Re: Minimal logical decoding on standbys
Date
Msg-id 6797892f-6eaf-c62a-a556-6fd6e3e14b2a@gmail.com
Whole thread Raw
In response to Re: Minimal logical decoding on standbys  (Amit Kapila <amit.kapila16@gmail.com>)
List 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.kapila16@gmail.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



pgsql-hackers by date:

Previous
From: "Drouvot, Bertrand"
Date:
Subject: Re: Minimal logical decoding on standbys
Next
From: Masahiko Sawada
Date:
Subject: Re: Initial Schema Sync for Logical Replication