Add GUC to show EXEC_BACKEND state
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 26 Nov 2025 13:24:27 +0000 (14:24 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 26 Nov 2025 13:24:27 +0000 (14:24 +0100)
commitb3fe098d330ff6a7c23019d66a600072b1d4664d
tree9e2d9a72594fc32db6626a87525fca8248eb965d
parent0f4f45772c5a87ca2f228ee3bea36d313dca0b51
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
doc/src/sgml/config.sgml
src/backend/utils/misc/guc_parameters.dat
src/backend/utils/misc/guc_tables.c