Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tvhF3-007Bgx-8q for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Mar 2025 18:37:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tvhF1-00DTdt-Vz for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Mar 2025 18:37:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tvhF1-00DTZ1-MK for pgsql-hackers@lists.postgresql.org; Fri, 21 Mar 2025 18:37:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tvhF0-000Mb1-0O for pgsql-hackers@lists.postgresql.org; Fri, 21 Mar 2025 18:37:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52LIb5Bh1584339; Fri, 21 Mar 2025 14:37:05 -0400 From: Tom Lane To: Sami Imseih cc: Robert Haas , Andrei Lepikhov , Jeff Davis , Thom Brown , PostgreSQL Hackers Subject: Re: making EXPLAIN extensible In-reply-to: References: <2234935.1741809008@sss.pgh.pa.us> <2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com> <8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com> Comments: In-reply-to Sami Imseih message dated "Fri, 21 Mar 2025 09:02:43 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1584337.1742582225.1@sss.pgh.pa.us> Date: Fri, 21 Mar 2025 14:37:05 -0400 Message-ID: <1584338.1742582225@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sami Imseih 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