Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBIag-0005JK-Tu for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Dec 2022 16:50:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pBIaf-0006V8-O1 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Dec 2022 16:50:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBIaf-0006Uz-Ee for pgsql-hackers@lists.postgresql.org; Fri, 30 Dec 2022 16:50:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBIad-0000H4-9e for pgsql-hackers@postgresql.org; Fri, 30 Dec 2022 16:50:41 +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 2BUGoaY9749876; Fri, 30 Dec 2022 11:50:36 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: split TOAST support out of postgres.h In-reply-to: References: <320834.1672240076@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Fri, 30 Dec 2022 12:53:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <749874.1672419036.1@sss.pgh.pa.us> Date: Fri, 30 Dec 2022 11:50:36 -0500 Message-ID: <749875.1672419036@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 28.12.22 16:07, Tom Lane wrote: >> I dunno, #3 seems kind of unprincipled. Also, since fmgr.h is included >> so widely, I doubt it is buying very much in terms of reducing header >> footprint. How bad is it to do #2? > See this incremental patch set. Wow, 41 files requiring varatt.h is a lot fewer than I would have guessed. I think that bears out my feeling that fmgr.h wasn't a great location: I count 117 #includes of that, many of which are in .h files themselves so that many more .c files would be required to read them. (You did check that this passes cpluspluscheck/headerscheck, right?) > It seems like maybe there is some intermediate abstraction that a lot of > these places should be using that we haven't thought of yet. Hmm. Perhaps, but I think I'm content with this version of the patch. regards, tom lane