Re: repeated decoding of prepared transactions
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Ajin Cherian <itsajin@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-02-26T13:56:02Z
Lists: pgsql-hackers
On Fri, Feb 26, 2021 at 4:13 PM Ajin Cherian <itsajin@gmail.com> wrote:
>
> On Fri, Feb 26, 2021 at 7:47 PM Ajin Cherian <itsajin@gmail.com> wrote:
>
> > I've updated snapshot_was_exported_at_ member to pg_replication_slots as well.
> > Do have a look and let me know if there are any comments.
>
> Update with both patches.
Thanks for fixing and providing an updated patch. Patch applies, make
check and make check-world passes. I could see the issue working fine.
Few minor comments:
+ <structfield>snapshot_was_exported_at</structfield> <type>pg_lsn</type>
+ </para>
+ <para>
+ The address (<literal>LSN</literal>) at which the logical
+ slot found a consistent point at the time of slot creation.
+ <literal>NULL</literal> for physical slots.
+ </para></entry>
+ </row>
I had seen earlier also we had some discussion on naming
snapshot_was_exported_at. Can we change snapshot_was_exported_at to
snapshot_exported_lsn, I felt if we can include the lsn in the name,
the user will be able to interpret easily and also it will be similar
to other columns in pg_replication_slots view.
L.restart_lsn,
L.confirmed_flush_lsn,
+ L.snapshot_was_exported_at,
L.wal_status,
L.safe_wal_size
Looks like there is some indentation issue here.
Regards,
Vignesh
Commits
-
Add option to enable two_phase commits via pg_create_logical_replication_slot.
- 19890a064ebf 14.0 landed
-
Avoid repeated decoding of prepared transactions after a restart.
- 8bdb1332eb51 14.0 landed
-
Allow decoding at prepare time in ReorderBuffer.
- a271a1b50e9b 14.0 cited