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 1khJt8-0005NW-Gj for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 22:00:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khJt7-0008PI-Dn for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 22:00:45 +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 1khJt7-0008PB-79 for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2020 22:00:45 +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 1khJt5-0003XF-6e for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2020 22:00:44 +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 0ANM0f2h166716; Mon, 23 Nov 2020 17:00:41 -0500 From: Tom Lane To: Justin Pryzby cc: pgsql-hackers@lists.postgresql.org Subject: Re: optimizer/clauses.h needn't include access/htup.h In-reply-to: <20201123205505.GJ24052@telsasoft.com> References: <20201123205505.GJ24052@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Mon, 23 Nov 2020 14:55:05 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <166714.1606168841.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Nov 2020 17:00:41 -0500 Message-ID: <166715.1606168841@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin Pryzby writes: > It was only needed between these: > commit a8677e3ff6bb8ef78a9ba676faa647bba237b1c4 > commit f09346a9c6218dd239fdf3a79a729716c0d305bd Hm, you're right. Removed. > I noticed while looking at "what includes what" and wondered if some of = these > are kind of "modularity violations". = Yeah. I've ranted before that we ought to have some clearer idea of module layering within the backend, and avoid cross-header inclusions that would break the layering. This particular case didn't really do so, I suppose, since htup.h would surely be on a lower level than the optimizer. But it still seems nicer to not have that inclusion. Anyway, if you're feeling motivated to explore a more wide-ranging refactoring, by all means have a go at it. regards, tom lane