]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Adjust style of some debugging macros.
authorNathan Bossart <nathan@postgresql.org>
Fri, 6 Feb 2026 22:24:21 +0000 (16:24 -0600)
committerNathan Bossart <nathan@postgresql.org>
Fri, 6 Feb 2026 22:24:21 +0000 (16:24 -0600)
This commit adjusts a few debugging macros to match the style of
those in pg_config_manual.h.  Like commits 123661427b and
b4cbc106a6, these were discovered while reviewing Aleksander
Alekseev's proposed changes to pgindent.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/aP-H6kSsGOxaB21k%40nathan

src/backend/access/nbtree/nbtsort.c
src/backend/utils/adt/numeric.c
src/include/executor/execdebug.h

index 90ab4e91b56957c59bffca26267809eff5f7e860..3a45508f62ea4c4b0027108eb8993388523f8c29 100644 (file)
@@ -69,8 +69,8 @@
 /*
  * DISABLE_LEADER_PARTICIPATION disables the leader's participation in
  * parallel index builds.  This may be useful as a debugging aid.
-#undef DISABLE_LEADER_PARTICIPATION
  */
+/* #define DISABLE_LEADER_PARTICIPATION */
 
 /*
  * Status record for spooling/sorting phase.  (Note we may have two of
index 891ae6ba7feaddc1aaea73c473ff5773fdebefd3..3bd3635d98aeec9008fc080bcd6b9ca00cd945c1 100644 (file)
@@ -48,8 +48,8 @@
  * Uncomment the following to enable compilation of dump_numeric()
  * and dump_var() and to get a dump of any result produced by make_result().
  * ----------
-#define NUMERIC_DEBUG
  */
+/* #define NUMERIC_DEBUG */
 
 
 /* ----------
index 20ac9be0b92045afd507479b021b10bcd43b0a8c..3e1105519143375082e5ffaec95b5469559ebc42 100644 (file)
  *             EXEC_NESTLOOPDEBUG is a flag which turns on debugging of the
  *             nest loop node by NL_printf() and ENL_printf() in nodeNestloop.c
  * ----------------
-#undef EXEC_NESTLOOPDEBUG
  */
+/* #define EXEC_NESTLOOPDEBUG */
 
 /* ----------------
  *             EXEC_SORTDEBUG is a flag which turns on debugging of
  *             the ExecSort() stuff by SO_printf() in nodeSort.c
  * ----------------
-#undef EXEC_SORTDEBUG
  */
+/* #define EXEC_SORTDEBUG */
 
 /* ----------------
  *             EXEC_MERGEJOINDEBUG is a flag which turns on debugging of
  *             the ExecMergeJoin() stuff by MJ_printf() in nodeMergejoin.c
  * ----------------
-#undef EXEC_MERGEJOINDEBUG
  */
+/* #define EXEC_MERGEJOINDEBUG */
 
 /* ----------------------------------------------------------------
  *             #defines controlled by above definitions