pgsql: Add an additional hook for EXPLAIN option validation.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add an additional hook for EXPLAIN option validation.
Date: 2025-03-20 18:15:00
Message-ID: E1tvKQ0-000ATg-1N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add an additional hook for EXPLAIN option validation.

Commit c65bc2e1d14a2d4daed7c1921ac518f2c5ac3d17 made it possible for
loadable modules to add EXPLAIN options. Normally, any necessary
validation can be performed by the hook function passed to
RegisterExtensionExplainOption, but if a loadable module wants to sanity
check options against each other, that needs to be done after the entire
options list has been processed. So, add an additional hook for that
purpose.

Author: Sami Imseih <samimseih(at)gmail(dot)com>
Reviewed-by: Robert Haas <robertmhaas(at)gmail(dot)com>
Reviewed-by: Andrei Lepikhov <lepihov(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: http://postgr.es/m/CAA5RZ0vOcJF91O2e5AQN+V6guMNLMhJx83dxALf-iUZ-hLGO_Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/50ba65e73325cf55fedb3e1f14673d816726923b

Modified Files
--------------
src/backend/commands/explain_state.c | 7 +++++++
src/include/commands/explain_state.h | 5 +++++
2 files changed, 12 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-03-20 20:23:15 pgsql: Be more paranoid in configure's checks for CRC and POPCNT intrin
Previous Message Nathan Bossart 2025-03-20 16:09:46 pgsql: Add test for pg_upgrade file transfer modes.