From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve ExplainState type handling in header files
Date: Mon, 15 Sep 2025 09:05:19 +0000
Message-ID: <E1uy59D-000oCS-0p@gemulon.postgresql.org> (raw)
Improve ExplainState type handling in header files
Now that we can have repeat typedefs with C11, we don't need to use
"struct ExplainState" anymore but can instead make a typedef where
necessary. This doesn't change anything but makes it look nicer.
(There are more opportunities for similar changes, but this is broken
out because there was a separate discussion about it, and it's
somewhat bulky on its own.)
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f36c0a45-98cd-40b2-a7cc-f2bf02b12890%40eisentraut.org#a12...
Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355@eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/70407d39b7ea8fd41496489b5f6a30c285e7d7d0
Modified Files
--------------
doc/src/sgml/fdwhandler.sgml | 2 +-
src/include/commands/explain.h | 24 +++++++++++------------
src/include/commands/explain_dr.h | 5 +++--
src/include/commands/explain_format.h | 37 ++++++++++++++++++-----------------
src/include/commands/explain_state.h | 2 +-
src/include/foreign/fdwapi.h | 10 +++++-----
6 files changed, 41 insertions(+), 39 deletions(-)
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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve ExplainState type handling in header files
In-Reply-To: <E1uy59D-000oCS-0p@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