pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Retire execdebug.h and its debugging facility
Date: Sat, 22 Aug 2026 07:23:43 +0000
Message-ID: <E1wxg4s-00000001cT0-2Afc@gemulon.postgresql.org> (raw)

Retire execdebug.h and its debugging facility

execdebug.h includes "pretty old and crufty" code used to print
debugging information in the executor.  As reported recently, this code
has not compiled in the last 10 years or so, and there are better
alternatives available, such as elog().

There is no indication that this facility is still being used, so remove
it along with its associated debugging macros:
EXEC_NESTLOOPDEBUG
EXEC_SORTDEBUG
EXEC_MERGEJOINDEBUG

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Discussion: https://postgr.es/m/aoFfAvp6xdk7Cdi6@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/617636328f5285fa2e0b7e42f4ae3cb0d82f8b5e

Modified Files
--------------
src/backend/executor/nodeIncrementalSort.c |  41 +--------
src/backend/executor/nodeMergejoin.c       | 121 +--------------------------
src/backend/executor/nodeNestloop.c        |  38 +--------
src/backend/executor/nodeSort.c            |  27 +-----
src/backend/jit/llvm/llvmjit_expr.c        |   1 -
src/include/executor/execdebug.h           | 130 -----------------------------
6 files changed, 4 insertions(+), 354 deletions(-)



Message-ID: <E1wxg4s-00000001cT0-2Afc@gemulon.postgresql.org>
Permalink:  ../E1wxg4s-00000001cT0-2Afc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wxg4s-00000001cT0-2Afc@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Retire execdebug.h and its debugging facility
  In-Reply-To: <E1wxg4s-00000001cT0-2Afc@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