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 1tLmU8-00Gy9y-4J for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 16:56:20 +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 1tLmU5-00DYJZ-HO for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 16:56:18 +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 1tLmU5-00DYJR-7D for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 16:56:18 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLmU3-002Uip-H1 for pgsql-hackers@postgresql.org; Thu, 12 Dec 2024 16:56:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4BCGuCHR659972; Thu, 12 Dec 2024 11:56:12 -0500 From: Tom Lane To: Andres Freund cc: Andrei Lepikhov , Michael Paquier , Euler Taveira , pgsql-hackers Subject: Re: Add Postgres module info In-reply-to: References: <506788.1733941263@sss.pgh.pa.us> <2qdclwljzvw5abfvo4porr3ehox32icrbtfjaum327ruxts6qm@udexcbweewpq> <556165.1733967268@sss.pgh.pa.us> <570943.1733974778@sss.pgh.pa.us> Comments: In-reply-to Andres Freund message dated "Thu, 12 Dec 2024 11:44:23 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <659970.1734022572.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Dec 2024 11:56:12 -0500 Message-ID: <659971.1734022572@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2024-12-12 11:35:56 +0700, Andrei Lepikhov wrote: >> I want to say that 'cannot unload libraries' is a negative outcome of t= he >> architecture. It would be better to invent something like PG_unregister= , >> allowing libraries to at least return a hook routine call back to the >> system. > I am quite certain we'll not support unloading libraries anytime soon. W= e used > to support it and it caused problems... Changing anything about how exac= tly > things are tracked in dfmgr.c will be the smallest part of supporting > unloading libraries again. Indeed. However, I don't see what that has to do with the current discussion anyway. The proposed SRF would iterate through whatever is in the DynamicFileList. What does it care whether there's a way to add or remove entries? regards, tom lane