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.94.2) (envelope-from ) id 1uoJch-00230a-AZ for pgsql-committers@arkaria.postgresql.org; Tue, 19 Aug 2025 10:31:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uoJce-009ZD8-SP for pgsql-committers@arkaria.postgresql.org; Tue, 19 Aug 2025 10:31:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uoJce-009ZCz-Ao for pgsql-committers@lists.postgresql.org; Tue, 19 Aug 2025 10:31:21 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uoJcb-000dSm-1X for pgsql-committers@lists.postgresql.org; Tue, 19 Aug 2025 10:31:20 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id 228E77A00DD; Tue, 19 Aug 2025 06:31:17 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Tue, 19 Aug 2025 06:31:17 -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=fm2; t=1755599476; x= 1755685876; bh=yoC8PpDnTqyGGJEkdcm76Vi00bH5EiilpUdM+HUEVdM=; b=m bu2I0wWC7J6t9A9T6urtbj976il72m0t7HHW3Gsul6zw+3sBd8rKwVthDza0b2Mo UnTaT8CJmg91tb0ZjXf8rTbXezBPrUYw2l2CRdtYAQKQQkY/x5UVyr95cqw7ZYNY s8T6Rm7MkSCXdKiw4zAbskyd1ZHmnqUFyR0JlTv8XnvHYsoPqGtStO3HGRP1pmdC e+dboGfeT2R9/FIBhwGeSCPjr0IE3alDnH/nBdIXpi5bjBT90a14d0TQ1JoQuLYt lWi9fwriCU/2OzFAFdnNSstyiftEzjBtwb3ErnTNNgFYMD7NshXUX52Ob5tgsY7M oSoXa3iZ+Hx8akdgyBlzg== 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=fm3; t=1755599476; x=1755685876; bh=y oC8PpDnTqyGGJEkdcm76Vi00bH5EiilpUdM+HUEVdM=; b=F4SOlb5BxbhduhG7G MALOJhKDg2RhoD0Iv7DoitlE3ITVdJq8+P1xX+L20dOCGUsofEjrTbIQEyRRyrzi p+pJ9/C1kQ9fh9RBIApUeTgE2jnvl9PIeEpV1zBpTKqSTXk+HAbVOfmQkU/vnEzY wORIC6h30x/L++dkCxYmc5ltpiGZq0Pe1n4YaNcWh8rc1sWe/UYgwMPAbiTRh97e wSDhR1MffIBdPltcnajRuO22u3hSfvZjf0v4nGMvkyt6RgExj3QfglOJzSQvljNz tQOQtOcsbdKaQKU+vpsMQFzVtSBQIkHFWmrlZdwBraEVjrhyp4Ls/HaWY1PTF/h9 5M56g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduheehvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesmhekreertddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeegudetudejheduveevgeehjeegleevveevvdeutdejtdekuefhheeh geevtdejteenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhishhtshdrphho shhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuihgvrh drgiihiidprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Aug 2025 06:31:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1755599474; bh=w7IFXZjCpWgFl+SRHANF/IaFXOSd3E0vcx5TBtyvq28=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=clh30wE5uon6wXndgmoGXlFklEq/CsOrjwcAQyR9PA3zVmOKvn5DaqoYYdcZfUssU f2e5rciKcpMWGAQQCcF10sXolC5P6816uB5d39qAS9XaJhvfZg2tjKreNbVmZY4Bdt aJC5ONB7JWqmSsLu67STgLyijaKgP4YyRXg/Qm2LhkN50YkOyHfaBxE1ZOh9mImnR+ hH6eQGBCybK/g7NHk8O6QPAbu69pxPpQpAtYtAXPTpWtWNuKQ7Nq1Sll9uTFAtMvD6 UpqpbmU7jriVoryjwF0UhPfp3z2Wd325NDbhOCrjN5dDffO+W5fLdZHiDXsQWJKGQM VyKoEix7ObHpA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 6DEC290; Tue, 19 Aug 2025 12:31:14 +0200 (CEST) Date: Tue, 19 Aug 2025 12:31:14 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tom Lane Cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move SQL-callable code related to multixacts into its own file Message-ID: <202508191031.5ipojyuaswzt@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="27ajigsq7y4kupyx" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <476683.1755560289@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --27ajigsq7y4kupyx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2025-Aug-18, Tom Lane wrote: > Michael Paquier writes: > > On Mon, Aug 18, 2025 at 09:47:14AM -0400, Tom Lane wrote: > >> Couldn't this have removed some #include-s from multixact.c? > > > Right. funcapi.h and fmgrprotos.h are direct dependencies, but > > looking closer it is also possible to remove four more of them. > > Sounds good! Hmm, don't you find strange that dbcommands.h is still included there? I wondered about that and found out that we have get_database_name() declared there. It sort-of makes sense, because it was originally done by scanning pg_database, but since commit cb98e6fb8fd4 introduced a syscache for it, we can have this routine in lsyscache.c/h instead, where it feels more at home. It also seems more sensible to declare get_database_oid() in pg_database.h. After these two changes, a lot of files can stop including dbcommands.h. This seems a nice cleanup to me, and passes headerscheck. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ --27ajigsq7y4kupyx Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Avoid-including-commands-dbcommands.h-randomly.patch"