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 <[email protected]>
Reviewed-by: shveta malik <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Reviewed-by: Hayato Kuroda <[email protected]>
Reviewed-by: Amit Kapila <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/caa4ek1lc+kjiaksrpe_nwvndidw9f2os7geruesxskv71gx...@mail.gmail.com

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(-)

Reply via email to