Re: Possible bug in logical replication. - Mailing list pgsql-hackers

From Arseny Sher
Subject Re: Possible bug in logical replication.
Date
Msg-id 87in7md034.fsf@ars-thinkpad
Whole thread Raw
In response to Re: Possible bug in logical replication.  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Possible bug in logical replication.
List pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:

> I think that using restart_lsn instead of confirmed_flush is not right approach.
> If restart_lsn is not available and confirmed_flush is pointing to page
> boundary, then in any case we should somehow handle this case and adjust
> startlsn to point on the valid record position (by jjust adding page header
> size?).

Well, restart_lsn is always available on live slot: it is initially set
in ReplicationSlotReserveWal during slot creation.


--
Arseny Sher
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: overhead of expression evaluation
Next
From: Etsuro Fujita
Date:
Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled.