pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Expose sequence page LSN via pg_get_sequence_data.
Date: Mon, 06 Oct 2025 08:37:30 +0000
Message-ID: <E1v5gio-000JHr-2D@gemulon.postgresql.org> (raw)

Expose sequence page LSN via pg_get_sequence_data.

This patch enhances the pg_get_sequence_data function to include the
page-level LSN (Log Sequence Number) of the sequence. This additional
metadata will be used by upcoming patches to support synchronization
of sequences during logical replication.

By exposing the LSN, we enable more accurate tracking of sequence
changes, which is essential for maintaining consistency across
replicated nodes.

Author: vignesh C <vignesh21@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAA4eK1LC+KJiAkSrpE_NwvNdidw9F2os7GERUeSxSKv71gXysQ@mail.gmail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b93172ca59f4ae317b2b9dfbf7f342b237101256

Modified Files
--------------
src/backend/commands/sequence.c        | 10 ++++++++--
src/include/catalog/catversion.h       |  2 +-
src/include/catalog/pg_proc.dat        |  4 ++--
src/test/regress/expected/sequence.out |  8 ++++----
src/test/regress/sql/sequence.sql      |  2 +-
5 files changed, 16 insertions(+), 10 deletions(-)



Message-ID: <E1v5gio-000JHr-2D@gemulon.postgresql.org>
Permalink:  ../E1v5gio-000JHr-2D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v5gio-000JHr-2D@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Expose sequence page LSN via pg_get_sequence_data.
  In-Reply-To: <E1v5gio-000JHr-2D@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox