Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBbJ3-0003t9-9w for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 09:36:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBbJ2-0002Ue-53 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 09:36:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBbJ1-0002UX-Ou for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2020 09:36:07 +0000 Received: from [64.147.123.19] (helo=wout3-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBbIy-0006NE-No for pgsql-hackers@postgresql.org; Tue, 10 Mar 2020 09:36:06 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 12ED786E; Tue, 10 Mar 2020 05:35:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 10 Mar 2020 05:35:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=MwYh7i6zxIly5nNiLKJ3xc2SkdHjxrvJi/q3wF+Lm 0M=; b=jzgwHiTNqIrUSKXlY0/LzmKtWplrygTIF+amMA3WuVqvJK00zXgiWKdm/ YeiWI/JUjbucjyVDHP1/fxmxua1LkxP3mCr9j7vDoIjbUPcH3fB/bgoXsWTa+L62 0+f/bcfU4dOC+gWMu/epPEKzR5FztezFXWAYNUsPX/iYl+0AelSPDe/Qlm2tGn8q js5P+jMp+Er6bu3pIPzD6pQ0yPLnYawgQImPG2n+ZNk2B60MlWJRbO6I5Rg/bPTH UrWEQF77yjRexNV45vKRlTs/t8IH+0vhbVaWdR2joH0Vh/+ttAAJbQpu8W1eDaCZ /wGp52+HlzCKJ6JL67zlfZs6uAv+Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvtddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvddufedrvdegudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 0FC7E3061363; Tue, 10 Mar 2020 05:35:51 -0400 (EDT) Subject: Re: Remove utils/acl.h from catalog/objectaddress.h To: Alvaro Herrera References: <20200309160707.GA3597@alvherre.pgsql> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <44263f2b-da18-1d05-d628-d76a330c79f3@2ndquadrant.com> Date: Tue, 10 Mar 2020 10:35:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200309160707.GA3597@alvherre.pgsql> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.19 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-09 17:07, Alvaro Herrera wrote: > On 2020-Mar-07, Peter Eisentraut wrote: > >> I noticed that catalog/objectaddress.h includes utils/acl.h for no apparent >> reason. It turns out this used to be needed but not anymore. So removed it >> and cleaned up the fallout. Patch attached. > > parser/parse_nodes.h already includes nodes/parsenodes.h, so the seeming > redundancy in places such as > >> diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h >> index c27d255d8d..be63e043c6 100644 >> --- a/src/include/commands/vacuum.h >> +++ b/src/include/commands/vacuum.h >> @@ -19,6 +19,7 @@ >> #include "catalog/pg_statistic.h" >> #include "catalog/pg_type.h" >> #include "nodes/parsenodes.h" >> +#include "parser/parse_node.h" > > (and others) is not just apparent; it's also redundant in practice. And > it's not like parse_node.h is ever going to be able not to depend on > parsenodes.h, so I would vote to remove nodes/parsenodes.h from the > headers where you're adding parser/parse_node.h. OK, committed with your and Tom's changes. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services