pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add mem_exceeded_count column to pg_stat_replication_slots.
Date: Wed, 08 Oct 2025 17:05:21 +0000
Message-ID: <E1v6XbN-000hqZ-1q@gemulon.postgresql.org> (raw )
Add mem_exceeded_count column to pg_stat_replication_slots.
This commit introduces a new column mem_exceeded_count to the
pg_stat_replication_slots view. This counter tracks how often the
memory used by logical decoding exceeds the logical_decoding_work_mem
limit. The new statistic helps users determine whether exceeding the
logical_decoding_work_mem limit is a rare occurrences or a frequent
issue, information that wasn't available through existing statistics.
Bumps catversion.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com >
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/978D21E8-9D3B-40EA-A4B1-F87BABE7868C@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d3b6183dd988928dd369b4b7d641917e77f1ae4e
Modified Files
--------------
contrib/test_decoding/expected/stats.out | 71 +++++++++++++------------
contrib/test_decoding/sql/stats.sql | 13 +++--
doc/src/sgml/monitoring.sgml | 11 ++++
src/backend/catalog/system_views.sql | 1 +
src/backend/replication/logical/logical.c | 8 ++-
src/backend/replication/logical/reorderbuffer.c | 34 +++++++++---
src/backend/utils/activity/pgstat_replslot.c | 1 +
src/backend/utils/adt/pgstatfuncs.c | 19 ++++---
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 6 +--
src/include/pgstat.h | 1 +
src/include/replication/reorderbuffer.h | 3 ++
src/test/regress/expected/rules.out | 3 +-
13 files changed, 113 insertions(+), 60 deletions(-)
view thread (3+ messages) latest in thread
Message-ID: <E1v6XbN-000hqZ-1q@gemulon.postgresql.org>
Permalink: ../E1v6XbN-000hqZ-1q@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1v6XbN-000hqZ-1q@gemulon.postgresql.org
copy link · copy postgr.es
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: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add mem_exceeded_count column to pg_stat_replication_slots.
In-Reply-To: <E1v6XbN-000hqZ-1q@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