pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Expose some information about backend subxact status.
Date: Mon, 19 Dec 2022 19:56:11 +0000
Message-ID: <E1p7MF8-004RLt-5L@gemulon.postgresql.org> (raw)

Expose some information about backend subxact status.

A new function pg_stat_get_backend_subxact() can be used to get
information about the number of subtransactions in the cache of
a particular backend and whether that cache has overflowed. This
can be useful for tracking down performance problems that can
result from overflowed snapshots.

Dilip Kumar, reviewed by Zhihong Yu, Nikolay Samokhvalov,
Justin Pryzby, Nathan Bossart, Ashutosh Sharma, Julien
Rouhaud. Additional design comments from Andres Freund,
Tom Lane, Bruce Momjian, and David G. Johnston.

Discussion: http://postgr.es/m/CAFiTN-ut0uwkRJDQJeDPXpVyTWD46m3gt3JDToE02hTfONEN=Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/10ea0f924a2788f9e701d6213745aaa5ca3efb8a

Modified Files
--------------
doc/src/sgml/monitoring.sgml                | 18 ++++++++++++++
src/backend/storage/ipc/sinvaladt.c         | 13 +++++++---
src/backend/utils/activity/backend_status.c |  4 ++-
src/backend/utils/adt/pgstatfuncs.c         | 38 +++++++++++++++++++++++++++++
src/include/catalog/catversion.h            |  2 +-
src/include/catalog/pg_proc.dat             |  7 ++++++
src/include/storage/sinvaladt.h             |  4 ++-
src/include/utils/backend_status.h          | 11 +++++++++
8 files changed, 90 insertions(+), 7 deletions(-)



Message-ID: <E1p7MF8-004RLt-5L@gemulon.postgresql.org>
Permalink:  ../E1p7MF8-004RLt-5L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1p7MF8-004RLt-5L@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Expose some information about backend subxact status.
  In-Reply-To: <E1p7MF8-004RLt-5L@gemulon.postgresql.org>
  References: <E1p7MF8-004RLt-5L@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