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.96) (envelope-from ) id 1w8QJa-000W93-2h for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 22:15:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8QJZ-008P0O-2V for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 22:15:02 +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.96) (envelope-from ) id 1w8QJY-008P0B-2T for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 22:15:01 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w8QJV-00000000GxZ-11cn for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 22:15:00 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id CD389140027F; Thu, 2 Apr 2026 18:14:53 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 02 Apr 2026 18:14:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1775168093; x= 1775254493; bh=TMFiAvM3uhJTwFrvls3Fn3FaTCaICbjjokEq/BqxwrU=; b=p 7YzDtX7IvxVC+7GK39uikTDin4CbXfXX1EabNEFKPHUAPPLfI4o/ssFvikv3lLaW jb+YNOy3vdupTNqDre3WTgI735CWDfLV+4dXs4d+KZNdV7vRsv82OF4/X42Iu9/D Pgg9CukkLmdtJoUqkNqXeChAnWXXpHQVKYm0fMItEGaC7Q64JsxNhDE8ZhKwEQCq +jJ3OAB25uH3okiShU8CI3DOKrNQi+7xEj/81zAZC71P6IoWjqElSn5s9OXDPE1u QyN3WZg/cj6Wd/XqVkqNvnKHiMq7zuD54qNquJwL2OokjfuwPNYqRQG7l476G8oS CSN/NRtjylliO3DY+SyIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775168093; x=1775254493; bh=T MFiAvM3uhJTwFrvls3Fn3FaTCaICbjjokEq/BqxwrU=; b=OctpZgzltbRLyMgbH Ae5+ctuyWXkfwo3A7n+sWC+mssGi2s5f07QiNZvESju5Tqw5PHvNRf0B3Ands56Y WePbldN+4uGLEuRYJY5AgnX+EleaNQZTExA7RdRyiz4+nU+AcJqrWOvgvBZc/MgD kEtfSVEyjfeTqt5Q3HaWQsq6NeCNTmMJfmPUR44hXGHik6j43GYs6GUIR9Ny1lAK paVpElZFqqSm9lFxHl15wDfnmtldkHP62gNOCBRYrVFsBiKCfiJro23F1jO3VhCs tjpjTo4XZIo+Bv4rSB7K6sWfvGM+4MnPTTrQw3MJ4yZtr+fInVn26HLP9lzN4uSd 9rYYQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdejvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkgggtugfgjgesmhekreertddtjeenucfhrhhomheplmhlvhgrrhhoucfj vghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtffrrg htthgvrhhnpeegudetudejheduveevgeehjeegleevveevvdeutdejtdekuefhheehgeev tdejteenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsehk uhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehp ghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Apr 2026 18:14:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1775168091; bh=uRStqCOnGCSwJm8WprEpoVpwkslKjAzauUwciVbGEIM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=47gebHyJoh8B245RZ0GVwAafPz3YUit8EoSyQcHpAp0amD996nadEaQ6mgANXi20V tww21Kj5M+Dxv+d4cthf7zl1F9hFqJSkGZL1qyAKh2naOFxXqXbB+T+WCoYRuXGL8h CiaZkTPXJYnONe6EgITGCcubdYYNu17+FxQ9PuWi8QGhxEXWClWyx3wIiqfu8YNBQU KDzx1931RFwHoNfmVOBy+JitY7QehP/cD1bcZaVn7HJ4lH7nX/32w3UBRIJZ7TFnz0 v7WAHF+8Jo3OGMEba4HXwC5Ajqptdewgjmq1+ACfbW9KxOk0pIRShQ58MCGu5EiCfs uVnzKfbJ0Ajog== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 219727C; Fri, 03 Apr 2026 00:14:51 +0200 (CEST) Date: Fri, 3 Apr 2026 00:14:51 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Andres Freund Cc: Pg Hackers Subject: Re: some more include removal from headers Message-ID: <202604022213.ijh54ljfsfb7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="rmdldozsotr5364u" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --rmdldozsotr5364u Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, On 2026-Apr-02, Andres Freund wrote: > On 2026-04-02 20:24:29 +0200, Álvaro Herrera wrote: > > Looking at what else includes bufmgr.h, I think the minimum it can > > reduced to is compiling 157 files when you change bufmgr.h, per the > > patches attached here. Most of them are direct inclusions, so reducing > > further is tough. The only one we could blame is xlogutils.h, but it > > needs the ReadBufferMode enum, so in order to do better, we'd have to > > split bufmgr.h in two. > > I think you may have forgotten to attach the changes? Hm, so I did. Here they are. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Las mujeres son como hondas: mientras más resistencia tienen, más lejos puedes llegar con ellas" (Jonas Nightingale, Leap of Faith) --rmdldozsotr5364u Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-don-t-include-bufmgr.h-in-nbtree.h.patch"