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 1tpvqz-00EPfy-4Q for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Mar 2025 21:00:33 +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 1tpvqx-005Hq9-JG for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Mar 2025 21:00:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpvqx-005Hq1-9e for pgsql-hackers@lists.postgresql.org; Wed, 05 Mar 2025 21:00:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpvqt-001AXb-2j for pgsql-hackers@lists.postgresql.org; Wed, 05 Mar 2025 21:00:30 +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 525L0LIi476383; Wed, 5 Mar 2025 16:00:21 -0500 From: Tom Lane To: Robert Haas cc: Jeff Davis , Thom Brown , PostgreSQL Hackers Subject: Re: making EXPLAIN extensible In-reply-to: References: <5bbca514250c1f8ee45f08ada94184b0ae109fe9.camel@j-davis.com> <82f96eed213c8d76b36b8a3f504576e5af493270.camel@j-davis.com> <339167.1741200807@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 05 Mar 2025 15:08:52 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <476381.1741208421.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 05 Mar 2025 16:00:21 -0500 Message-ID: <476382.1741208421@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Wed, Mar 5, 2025 at 1:53 PM Tom Lane wrote: >> I'm quite confused by the #include additions in auto_explain.c and >> file_fdw.c, and I strongly object to the ones in explain_state.h. >> Surely those are unnecessary? > They are necessary but they should have been part of 0001. Ah. I was mistakenly assuming that 0001 would compile on its own ;-) > Because > 0001 moves the definition of ExplainState to explain_state.h, files > that need to access to the members of that structure now need to > include that header file. As for the includes in explain_state.h, it > needs definitions for DefElem, ParseState, and PlannedStmt. Got it. So does that mean we can remove any #include's from explain.h after moving the struct definition? regards, tom lane