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 1uX6fF-005s1X-41 for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jul 2025 23:14:53 +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 1uX6fC-006DbD-Tu for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jul 2025 23:14:51 +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 1uX6fC-006Db0-Ki for pgsql-hackers@lists.postgresql.org; Wed, 02 Jul 2025 23:14:51 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uX6fA-005OGa-3B for pgsql-hackers@lists.postgresql.org; Wed, 02 Jul 2025 23:14:50 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6050B7A0155; Wed, 2 Jul 2025 19:14:47 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 02 Jul 2025 19:14:47 -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=fm2; t=1751498087; x=1751584487; bh=fLNl9GVF7p iXn5USuVKmaiF+WNffNWmsVLMcMkcHjVY=; b=iC4TASjvf3KxMDDc3vQU13CdA6 zFpwjNQLi42dvoCGNes99iNOpAfncl4DNooAPx1SzexAp0XsdQu8a5nmXVdbDN0A 2TSnF1kwC45rmxkaRSu4brF+XkZWN2isJtUku8VPAy6whM/GhgWIbckwG0bLLB6O f5LPIvWvhqhygxEo/i0bxbXrqF8+OYYv5lBd/KWZU6kN5v41kUuu4VzGhul0wn3k MXKM1Qw2fujhzPWEWsZ2YTCgdqaZ+H6tHwLYvABjhyZJp8B3ceCxFWVdZ0cCwYAX Yipg+18H2SqLruiACXv64QYKwU9DPCRyJeBeQSd0scFaBc1e24ijLtCPZUFA== 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=fm2; t= 1751498087; x=1751584487; bh=fLNl9GVF7piXn5USuVKmaiF+WNffNWmsVLM cMkcHjVY=; b=B9rxopS3ECbn4HEPdz7qAmWY8EH6rEgLi/9VInBoA5f97x/vf6j s87ojocER+R88iBlISa35hWWJ2YkvEfcg/Ny3HfPEBmOFJM6nP9pAvYZSsett61X vX5dBCe/SKEqM6Zgq84/BbtGjPw/dgdXy5DXUdJVPreo0DuwX0ru+CzFE+0FXRU1 aHMX4rUD12YChZzPpMrdIzEWFBXk6+McqpUwyjjPp8AlRLgCO2Pqq/MhnH9UB5bk abbfezAPIsCE+d0rTyM4vY1cD4F2i2V9y/lfGyMMu5DKD7enDUeV7SN3o4T3y8HL OapC2GRbSl0wpf0DuYQ0vjX1BLrlmzv5cnw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddukeeilecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrnhgurh gvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehpghhsqhhlsehjqdgurghvihhs rdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhosh htghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhdrmhgvlhhnihhkohhvsehpohhsthhg rhgvshhprhhordhruh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Jul 2025 19:14:44 -0400 (EDT) Date: Thu, 3 Jul 2025 08:14:32 +0900 From: Michael Paquier To: Andres Freund Cc: Jeff Davis , Postgres hackers , "Maksim.Melnikov" Subject: Re: Persist injection points across server restarts Message-ID: References: <7eed8fc7526343dc3827e89b3cea9e6a5fee9470.camel@j-davis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/61PuobjhrADvvkK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/61PuobjhrADvvkK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 04, 2025 at 09:15:08AM +0900, Michael Paquier wrote: > On Tue, Jun 03, 2025 at 03:34:16PM -0400, Andres Freund wrote: >> I'm somewhat doubtful this is is the right direction. Tests that require >> injection points before consistency also can't wait for injection points= using >> the SQL interface or such, so most of the stuff has to be written in C >> anyway. And if so, you also can attach to injection points in the releva= nt >> shared_preload_libraries entry. >=20 > Hmm. I'm wondering about an alternate approach here: a postmaster GUC > in injection_points that can take in input a list of > name/library/function where the module would load them when > initializing. That's a bit artistic, perhaps, still it would work > without having to worry about the flush and reload steps. [A couple of weeks later] I am still not sure what's the right course of action here, so I'd agree to just reject the patch for now, but keep it in mind once we have more cases where this could be useful. The case I've found is perhaps not enough. Updating the CF app to reflect on this feedback now, thanks all for the input. -- Michael --/61PuobjhrADvvkK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmhlvVgACgkQnvQgOdby QH31vQ//bLf4LQr4LiCrMD6Jcetwk6ATS5f1C7u40xi9a6tvIf3KOt0Nvr1RaFxe He6erHrPjj8a2+tok1msDBAMyPW7h1rJDFauTe6WEsueNk4LhkIpdWKdHAqeRb+T +fjVW+R1ujKP1k3OQQwyslldh41t5r0vDZfUwONUl73VuULAI+wwB7zb9NKP5TQP ogwIZlsBckN6fPCFJDn1NCKPgRnu5JC7c7JP9jb/n3/xo/IGVjEva90Yk+l/weUL wH78Wtz21vBuI8+s2D882BoSm/vyT9BWNe/zH7FdxBHBnmcGpLpqe+1rNofOG/Ue PW8+ejSr1Lp8w9hoceHr7KrkFLxJyEBvPNz+CySXZrTQzYk/AwW93fB0xF9f721G F+6GeeuOCj7AUOC2fRsSlO7672wn6dI+I/8XGhOxZItPwXpS4Evyx2geLTFu+3st 0BxWfs6LO26rKM3/qAaTISwjZ+yOZGZZluOplKTfxdIjUrmCOUSChjKoCC/7KLI/ MR4J+6MooBGwHh7/0JUwZsrJkreE+4oKVihEVkYJ5BZCzoRmKNnq+tLk1wYBWcEo SHaonF76YPMpWOPTxaP9NuXwuxjAhCVS0YhbObrNe7fbDPc06K8H3NJ/RFg1KLg6 UWA5NaUYVTb1hj/p6s+nm62yX/7NgBjsVbDTLwqKPUoZB7tTfGs= =1V6W -----END PGP SIGNATURE----- --/61PuobjhrADvvkK--