pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sami Imseih <samimseih@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Andrei Lepikhov <lepihov@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Thom Brown <thom@linux.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: making EXPLAIN extensible
Date: Fri, 21 Mar 2025 14:37:05 -0400
Message-ID: <1584338.1742582225@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA5RZ0uYFERQO9XYx9Rc+bVO5WStRSOvK1Bw16qXTNxnCp8xEw@mail.gmail.com>
References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com>
	<2234935.1741809008@sss.pgh.pa.us>
	<CAA5RZ0vPvERsw1SJPohLm-sunLqndwEoP4VMD4NeZ1D0VVNB3w@mail.gmail.com>
	<CAA5RZ0uky7T78K4+-+3jMLrtfF2Oh7_Km6-XEoCc6E4M4Bpe6Q@mail.gmail.com>
	<CA+TgmoY06y2BqCYwfcn3=jXTRkio5CD+9fjbVbsJgUDN1PkRHA@mail.gmail.com>
	<CAA5RZ0tM8jEe_LSjjrTux9TbTpLex-PFQtSuVcfXCWT=N+thug@mail.gmail.com>
	<CA+Tgmoa+Yk8Pf80C1NgCu+ektyT=VZ_Wr+ZdZ0eTAC1RwKrp9w@mail.gmail.com>
	<CAA5RZ0v5pcWSxvuBrDfr2LeTw+0CkhoRc3SktPBHkEqh8Uhzcw@mail.gmail.com>
	<CAA5RZ0twuFUnP2U5w-XOtdqmWRi3VaB261x8jDxVs2YGaUUCUA@mail.gmail.com>
	<CA+TgmoZU1_arvV_gq1MfgQnW1LvK4m67Cp_O3jGMYM971gm45A@mail.gmail.com>
	<CAA5RZ0s=NYuB1SnuGmCbeC1=a0adQLmwSw3V-7E33u2R1=9JaA@mail.gmail.com>
	<CA+TgmoZt0-i=d07gHAVZ1Va_0eqCLSRTY+7KXzzWoXua9T1Kkw@mail.gmail.com>
	<CAA5RZ0vOcJF91O2e5AQN+V6guMNLMhJx83dxALf-iUZ-hLGO_Q@mail.gmail.com>
	<2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com>
	<CAA5RZ0vFHyK=39fOobQDZVPTfcJEAGx=cyu6vmAy6J4JZ7+SKg@mail.gmail.c! om>
	<8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com>
	<CA+TgmoaTkMna7OMqP-bJ+70sVvhmc2pHZ8xa1dU6NVAWE=7Qrg@mail.gmail.com>
	<CAA5RZ0sKhLRqce2+tvfuzBzm=HWQCe5TdPcbj7Vse+jQE=pyVA@mail.gmail.com>
	<CA+TgmoYcAfrOX8m05vVeh9QXUWO5SUA-uRo67DOK2tmZOnVXqg@mail.gmail.com>
	<CAA5RZ0uYFERQO9XYx9Rc+bVO5WStRSOvK1Bw16qXTNxnCp8xEw@mail.gmail.com>

Sami Imseih <samimseih@gmail.com> writes:
> overall this LGTM, and I don't really have other comments.

I took a look through v8, and have just a couple of trivial nits:

+static void overexplain_debug_handler(ExplainState *, DefElem *,
+                                      ParseState *);
+static void overexplain_range_table_handler(ExplainState *, DefElem *,
+                                            ParseState *);

I cordially hate this parameter-name-less style of function
declaration, and consider it Stroustrup's single worst idea in C++.
It rests on the assumption that parameter names convey zero
information, which is wrongheaded for any function more complex than,
say, addition.  Also, even if you like this style, clang-tidy probably
won't (cf for example 035ce1feb).

pgoverexplain.sgml seems to have been formatted to fit in about an
85-column window.  Please don't do that --- you might as well have
made it 99 columns wide or any other random number, it still looks
like heck in 80 columns.

Other than that, there's room to debate exactly what to show.
But as long as we're agreed that we won't hold this module to
high cross-version compatibility standards, that doesn't seem
like a problem.  I'm okay with this as a starting point.

			regards, tom lane





view thread (88+ messages)  latest in thread

Message-ID: <1584338.1742582225@sss.pgh.pa.us>
Permalink:  ../1584338.1742582225@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1584338.1742582225@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, samimseih@gmail.com, robertmhaas@gmail.com, lepihov@gmail.com, pgsql@j-davis.com, thom@linux.com
  Subject: Re: making EXPLAIN extensible
  In-Reply-To: <1584338.1742582225@sss.pgh.pa.us>
  References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com> <CA+Tgmoa+Yk8Pf80C1NgCu+ektyT=VZ_Wr+ZdZ0eTAC1RwKrp9w@mail.gmail.com> <CAA5RZ0v5pcWSxvuBrDfr2LeTw+0CkhoRc3SktPBHkEqh8Uhzcw@mail.gmail.com> <CAA5RZ0twuFUnP2U5w-XOtdqmWRi3VaB261x8jDxVs2YGaUUCUA@mail.gmail.com> <CA+TgmoZU1_arvV_gq1MfgQnW1LvK4m67Cp_O3jGMYM971gm45A@mail.gmail.com> <CAA5RZ0s=NYuB1SnuGmCbeC1=a0adQLmwSw3V-7E33u2R1=9JaA@mail.gmail.com> <CA+TgmoZt0-i=d07gHAVZ1Va_0eqCLSRTY+7KXzzWoXua9T1Kkw@mail.gmail.com> <CAA5RZ0vOcJF91O2e5AQN+V6guMNLMhJx83dxALf-iUZ-hLGO_Q@mail.gmail.com> <2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com> <8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com> <CA+TgmoaTkMna7OMqP-bJ+70sVvhmc2pHZ8xa1dU6NVAWE=7Qrg@mail.gmail.com> <CAA5RZ0sKhLRqce2+tvfuzBzm=HWQCe5TdPcbj7Vse+jQE=pyVA@mail.gmail.com> <CA+TgmoYcAfrOX8m05vVeh9QXUWO5SUA-uRo67DOK2tmZOnVXqg@mail.gmail.com> <CAA5RZ0uYFERQO9XYx9Rc+bVO5WStRSOvK1Bw16qXTNxnCp8xEw@mail.gmail.com> <1584338.1742582225@sss.pgh.pa.us>

* 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