]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add seq_sync_error_count to subscription statistics.
authorAmit Kapila <akapila@postgresql.org>
Fri, 7 Nov 2025 08:05:08 +0000 (08:05 +0000)
committerAmit Kapila <akapila@postgresql.org>
Fri, 7 Nov 2025 08:05:08 +0000 (08:05 +0000)
commitf6a4c498dcf6f05b4ef79051e95de12cc48bdeee
tree09689fb088c78cff8002740db5f9cc81b014d911
parentc32e32f763b4c70cb0a85af9f12ee6badd9c860b
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
12 files changed:
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/replication/logical/sequencesync.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/backend/utils/activity/pgstat_subscription.c
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/pgstat.h
src/test/regress/expected/rules.out
src/test/subscription/t/026_stats.pl