Re: repeated decoding of prepared transactions

Ajin Cherian <itsajin@gmail.com>

From: Ajin Cherian <itsajin@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-02-24T11:36:04Z
Lists: pgsql-hackers

Attachments

On Wed, Feb 24, 2021 at 4:48 PM Ajin Cherian <itsajin@gmail.com> wrote:

> I plan to split this into two patches next. But do review and let me
> know if you have any comments.

Attaching an updated patch-set with the changes for
snapshot_was_exported_at_lsn separated out from the changes for the
APIs pg_create_logical_replication_slot() and
pg_logical_slot_get_changes(). Along with a rebase that takes in a few
more commits since my last patch.

regards,
Ajin Cherian
Fujitsu Australia

Commits

  1. Add option to enable two_phase commits via pg_create_logical_replication_slot.

  2. Avoid repeated decoding of prepared transactions after a restart.

  3. Allow decoding at prepare time in ReorderBuffer.