mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +03:00
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
This commit is contained in:
@@ -11833,6 +11833,23 @@ dynamic_library_path = '/usr/local/lib/postgresql:$libdir'
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="guc-debug-exec-backend" xreflabel="debug_exec_backend">
|
||||
<term><varname>debug_exec_backend</varname> (<type>boolean</type>)
|
||||
<indexterm>
|
||||
<primary><varname>debug_exec_backend</varname> configuration parameter</primary>
|
||||
</indexterm>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Reports whether <productname>PostgreSQL</productname> has been built
|
||||
with <literal>EXEC_BACKEND</literal> enabled. That is the case on
|
||||
<systemitem class="osname">Windows</systemitem> or if the
|
||||
macro <symbol>EXEC_BACKEND</symbol> is defined
|
||||
when <productname>PostgreSQL</productname> is built.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="guc-huge-pages-status" xreflabel="huge_pages_status">
|
||||
<term><varname>huge_pages_status</varname> (<type>enum</type>)
|
||||
<indexterm>
|
||||
|
||||
Reference in New Issue
Block a user