pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add GUC to show EXEC_BACKEND state
Date: Wed, 26 Nov 2025 13:48:49 +0000
Message-ID: <E1vOFt2-001VMM-1f@gemulon.postgresql.org> (raw)

Add GUC to show EXEC_BACKEND state

There is no straightforward way to determine if a cluster is running
in EXEC_BACKEND mode or not, which is useful for tests to know. This
adds a GUC debug_exec_backend similar to debug_assertions which will
be true when the server is running in EXEC_BACKEND mode.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/5F301096-921A-427D-8EC1-EBAEC2A35082@yesql.se

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/config.sgml                  | 17 +++++++++++++++++
src/backend/utils/misc/guc_parameters.dat |  7 +++++++
src/backend/utils/misc/guc_tables.c       |  7 +++++++
3 files changed, 31 insertions(+)



Message-ID: <E1vOFt2-001VMM-1f@gemulon.postgresql.org>
Permalink:  ../E1vOFt2-001VMM-1f@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vOFt2-001VMM-1f@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: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add GUC to show EXEC_BACKEND state
  In-Reply-To: <E1vOFt2-001VMM-1f@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