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 1jBKvz-00038b-Us for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 16:07:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBKvy-0006vN-Eq for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 16:07:14 +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 1jBKvy-0006v9-2i for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2020 16:07:14 +0000 Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jBKvv-0002xo-J4 for pgsql-hackers@postgresql.org; Mon, 09 Mar 2020 16:07:12 +0000 Received: by mail-yw1-xc44.google.com with SMTP id d206so10590097ywa.12 for ; Mon, 09 Mar 2020 09:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=6hTKjK5PEqqGMK7muOiuVyQ6Nbmt30fPxPWebgZNBPg=; b=qc7ybGnCAPfrWuaHnNgqckD7nHtwqUqW9fBZcfJ8Mqy+fuIczChaCAxJ+39ADYVQbY /qxCz3xFL4zhcG2GvucM1n/z+M51FQVUgRwN7A4H407fgEu7yZhIwwXeyER2/AOM4eQ+ PZYKacU+sJLis/+cwgGIxB86R41DE1Sx8iFqXa5dJksUHQjnqWPhvfCybtVYjry6OgpN vGNq8qBTz/GaWRkFQ6+K2ddN0p2FmLWcVG+9iDjkiKmSyRowkRgnKmgY29JGIV2Xmz/c kdXRo/Ef3imQ8raWv+hQdva5CakPuGRH+c+b7UWGQjVFIza9ANHrq3PwI1AMzabsDnKA QXIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=6hTKjK5PEqqGMK7muOiuVyQ6Nbmt30fPxPWebgZNBPg=; b=g7p/ZRCsL/VTbWaidW//HRShOE+m3smBf1Xq39bfIJJYrW5EqZ8/QFH6uFZ6LYlfcd sQEk/mCn6BCZ2IpgGD6JOtmNA1z9raFO1Yw1DstULPFtQs4ATraHa2FNjsy8h804n2jL 0qrjUIdAfkBlUQuHWWiNbQJEySDT+e54mPmSa1UbW2oJ811IUx4BdThB71mqZzr4ku9V kHxDTNhXXhdmsQw6cygIzU9U4j3O50EoioJm0FPKSo0R7nrsp7MTVKWJKuhuRih5bEkm 9RIuhRHzqycGRowAwPWocfxrPnUfp5fAndUy4rPX/OApXZkklKYqH7mt62y0x6Sghvq4 rNqA== X-Gm-Message-State: ANhLgQ2HklCfgZvRmihhDqs0zBW4OM07AucEskL526lf2bmgK3YyzU4Q wK16UwxNQY9DXrmmlwOOAxeTNrNvjeY4xw== X-Google-Smtp-Source: ADFU+vvw8YN+HiStWRbD7g2qSghw0X0wwxcR3cqfzAv3C3Tx67OPNXuHoKHmA/CMb8Nk1o/iHYD8lQ== X-Received: by 2002:a25:c055:: with SMTP id c82mr16255424ybf.387.1583770031074; Mon, 09 Mar 2020 09:07:11 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.96.77]) by smtp.gmail.com with ESMTPSA id w132sm17822484ywc.51.2020.03.09.09.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 09:07:10 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id CA7DA300805; Mon, 9 Mar 2020 13:07:07 -0300 (-03) Date: Mon, 9 Mar 2020 13:07:07 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: Remove utils/acl.h from catalog/objectaddress.h Message-ID: <20200309160707.GA3597@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7601e258-26b2-8481-36d0-dc9dca6f28f1@2ndquadrant.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services