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: Add seq_sync_error_count to subscription statistics.
Date: Fri, 07 Nov 2025 08:16:00 +0000
Message-ID: <E1vHHdY-005QEe-0n@gemulon.postgresql.org> (raw)

Add seq_sync_error_count to subscription statistics.

This commit adds a new column, seq_sync_error_count, to the
pg_stat_subscription_stats view. This counter tracks the number of errors
encountered by the sequence synchronization worker during operation.

Since a single worker handles the synchronization of all sequences, this
value may reflect errors from multiple sequences. This addition improves
observability of sequence synchronization behavior and helps monitor
potential issues during replication.

Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAA4eK1LC+KJiAkSrpE_NwvNdidw9F2os7GERUeSxSKv71gXysQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/monitoring.sgml                     | 11 +++
src/backend/catalog/system_views.sql             |  1 +
src/backend/replication/logical/sequencesync.c   |  3 +
src/backend/replication/logical/tablesync.c      |  3 +-
src/backend/replication/logical/worker.c         | 18 ++---
src/backend/utils/activity/pgstat_subscription.c | 27 +++++--
src/backend/utils/adt/pgstatfuncs.c              | 27 ++++---
src/include/catalog/catversion.h                 |  2 +-
src/include/catalog/pg_proc.dat                  |  6 +-
src/include/pgstat.h                             |  6 +-
src/test/regress/expected/rules.out              |  3 +-
src/test/subscription/t/026_stats.pl             | 98 +++++++++++++++++-------
12 files changed, 143 insertions(+), 62 deletions(-)



Message-ID: <E1vHHdY-005QEe-0n@gemulon.postgresql.org>
Permalink:  ../E1vHHdY-005QEe-0n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vHHdY-005QEe-0n@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: Add seq_sync_error_count to subscription statistics.
  In-Reply-To: <E1vHHdY-005QEe-0n@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