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 1uo9D2-00GzBa-Pm for pgsql-committers@arkaria.postgresql.org; Mon, 18 Aug 2025 23:24:14 +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 1uo9D2-003LtQ-7P for pgsql-committers@arkaria.postgresql.org; Mon, 18 Aug 2025 23:24:12 +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.94.2) (envelope-from ) id 1uo9D2-003LtI-04 for pgsql-committers@lists.postgresql.org; Mon, 18 Aug 2025 23:24:12 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uo9D0-000bBr-1J for pgsql-committers@lists.postgresql.org; Mon, 18 Aug 2025 23:24:12 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 159AC7A0291; Mon, 18 Aug 2025 19:24:09 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 18 Aug 2025 19:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1755559448; x=1755645848; bh=njMibCj/zN THv1SNGU4SIWveh8ikHfKcYsigSK5VrC8=; b=Uq82GGiesegfYzCafkGVyjp/W7 opkP6E0wZdQUzb3yXSAne+HAvq4vnp9ZrHn8Bb1Z0HNfkdy0j8VfrXOzAxgQFkW/ g3U9ZvQALEozdnkCwYqXtQe3DwtAEAEw6OrL4HHvXVFdXQFLum9eEe3tdyFB1+id gXd30DGNLaBv2VAWaCjMVxKKoI4aNujhRwz8x8kVo4IP3NaiVt7NZfjINtV26+2j zp8JethewWddJ31L/1S6lM1JJTC9JoeJBQdXdtFwVlStAnbHJXszCkHYJfDi5em/ 78n/14rKuKq5L6NfjBNYbQQQGZx/Ko1uCXsUJqO676jH02wm+G619Wta8iCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1755559448; x=1755645848; bh=njMibCj/zNTHv1SNGU4SIWveh8ikHfKcYsi gSK5VrC8=; b=IzKmls5oSccSIDWrBY0p7+x3Tq2TRkz3qJXYa3hDEQKiSXv17/7 0pRes01TMiQZoBcOHtlTlvpTZ87akOXM3Nhn3T2Ei69dyvkhQmCmtIcfOQp6v+6F Y+FS0dpvHsiAPFfPx5tRAyiirRj0G+UIoD47qk4z0v4RQElLOL+7zaQX9yCJYEI2 C+jbYFiumEhTn9QRigcAOjU9J0QidR1O/Q7L2Jy/rVLkaYJqPV11IM/EDo/0iEQ9 XV5+qLWZCo649EaRVTe1LnbYyOqflvIwDFTIyaIwjeK+yRv2BPhn+PxxO7ySslFY j/SvphkJ2AgpsbMmh9nSBJ7Ldb1I9TCnnug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduheefleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvve fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnh epteelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepvddpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtth hopehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhishhtshdrphhoshhtghhrvghsqhhl rdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Aug 2025 19:24:07 -0400 (EDT) Date: Tue, 19 Aug 2025 08:24:04 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move SQL-callable code related to multixacts into its own file Message-ID: References: <345438.1755524834@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="w4KvihVyElQWKJWi" Content-Disposition: inline In-Reply-To: <345438.1755524834@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --w4KvihVyElQWKJWi Content-Type: multipart/mixed; boundary="6wCtSk2IUe9PLhxq" Content-Disposition: inline --6wCtSk2IUe9PLhxq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 18, 2025 at 09:47:14AM -0400, Tom Lane wrote: > Michael Paquier writes: > > Move SQL-callable code related to multixacts into its own file >=20 > 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. -- Michael --6wCtSk2IUe9PLhxq Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="multixact-header.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/tr= ansam/multixact.c index 886740d2d553..6a7963ccd03f 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -70,16 +70,12 @@ =20 #include "access/multixact.h" #include "access/slru.h" -#include "access/transam.h" #include "access/twophase.h" #include "access/twophase_rmgr.h" -#include "access/xact.h" #include "access/xlog.h" #include "access/xloginsert.h" #include "access/xlogutils.h" #include "commands/dbcommands.h" -#include "funcapi.h" -#include "lib/ilist.h" #include "miscadmin.h" #include "pg_trace.h" #include "pgstat.h" @@ -87,7 +83,6 @@ #include "storage/pmsignal.h" #include "storage/proc.h" #include "storage/procarray.h" -#include "utils/fmgrprotos.h" #include "utils/guc_hooks.h" #include "utils/injection_point.h" #include "utils/memutils.h" --6wCtSk2IUe9PLhxq-- --w4KvihVyElQWKJWi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmijthQACgkQnvQgOdby QH2b1g//fNvEIMzgm8Fi95voK+e+dlH0DIOVgEsbIT6CTmIUXfYveFsD7TpG9/in iU1KLEljAUNnPIEEp5L4Tb32wjPj5FgG7g1Rixi8qwMXsZ7N8C/0WR+Qoh3y/U1b fWHewZWdbZN1FFVsOL6mCDu2KFDoRnw2IngxQZLoR0Pw4Y81L58NXGZnx+/iNd2p i7586Yn12ADFNeH5xOszQQFrTh2Rs8oFN/bKgJjmHIHvTJcrQFUqG8ru1y6Qhot4 yGQW9hfl6SOhlVuZm57/D4UA6nfodutUbDezBPgjFv5xsA7PXI7ntSQdchVJNnEW bSwhMWWiOL0+v8moNag4mzJfxu3Xy+D8kd9NxCSNS0DSYD6lfwgi2C9Lda73Dag3 1NV95mdMZAHGIurp6I+z5GGu9uBb1LG/5CmFNNPjzqLs4PwnpOi56asSbbtu9vYP 1WmDVdII324U4yBYunbDMK9NPAsLKR1zXJCNRHyziOeWvSlR8/P8fceDnLvFffuW p+cHXlBwUjwnhrAFt4i+PqgpKQKUWowyWf9yT7YYkVQTOTpdJUQIRTTD4cCuLy8C S4amQMEyU5uVBQrGc2uyX1eBjyShLVTDtEJa6yZmrMm1HOsm6yhz39N4JQwKnLfo EcF6Zg0DKLva4kSMYVlQvM1zIrVfoMAPSp/FJmJ/OfaoiD2QKcY= =5Y+m -----END PGP SIGNATURE----- --w4KvihVyElQWKJWi--