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 1tDp45-003Q73-9X for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Nov 2024 18:04:33 +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 1tDp43-008Aq7-8u for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Nov 2024 18:04:31 +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 1tDp42-008Apz-Sf for pgsql-hackers@lists.postgresql.org; Wed, 20 Nov 2024 18:04:30 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDp3y-002uyY-Vp for pgsql-hackers@postgresql.org; Wed, 20 Nov 2024 18:04:28 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 783961140170; Wed, 20 Nov 2024 13:04:25 -0500 (EST) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-06.internal (MEProxy); Wed, 20 Nov 2024 13:04:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=justatheory.com; h=cc:cc:content-transfer-encoding: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= 2016-12.pbsmtp; t=1732125865; x=1732212265; bh=+yrqdUzEvbiiQrGFl WOjV08tmlrRuy4wswk2bXX+a7k=; b=gU+l0H9YGim7DuCJNPbimy22/8AU5vgB3 Jl4IphIAcd7RaslZDBHUuRso+kJq/sfgKrlf6RV0RCmlNoRG/ZGZIZcRRjNFPUWf VTIMflT3JbZea/JxDlFBzylcGTQ5BIgW7s0T+d83xTKZ0TNmWDxQfmUy+cFR5gEv Qx8Z7FWhHY= 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732125865; x= 1732212265; bh=+yrqdUzEvbiiQrGFlWOjV08tmlrRuy4wswk2bXX+a7k=; b=t 9W1QStkO4tndmYxs9iON6Nq07JUcDTshAT0M5pw4r0MPvoaKU/n85in9bB7enAMg RiuqprPk4GfP4u659Gs5kCEJMAMsUlq+9mCrqWsBwyi+G/Gq1DL17dZyw2QjMZDo NASp8xT7iz+sWqVq6Yl+2OGliGv8uLxZgpPcYWailunDYQKbu0Qn8mhh0Aw1KXBh 9f94ayLwo+tKqJSxu5HG5vVUQJb+WEoQgZtFXyLnDPCtZdTte5Qt4X+2O4bAx/pl AXML+Yq7vTd09tFHDaoWp9wrjgL9yq2EUm16WYsC2GI5jKS+Hl3E88Ssf/ZIAfIc 5x3146cSqrhzBK6oIAI3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeggddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtddv necuhfhrohhmpedfffgrvhhiugcugfdrucghhhgvvghlvghrfdcuoegurghvihgusehjuh hsthgrthhhvghorhihrdgtohhmqeenucggtffrrghtthgvrhhnpedthfduffekteelledu geeiheegjedvheffgeevieelleeuiedtteefhfegffduueenucffohhmrghinhepphhosh htghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepuggrvhhiugesjhhushhtrghthhgvohhrhidrtghomhdpnhgspghrtg hpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgvthgvrhesvghi shgvnhhtrhgruhhtrdhorhhgpdhrtghpthhtoheptghrrghighdrrhhinhhgvghrsegvnh htvghrphhrihhsvggusgdrtghomhdprhgtphhtthhopehgrggsrhhivghlvgdrsggrrhht ohhlihhnihesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghpthhtoheprhhosggvrh htmhhhrggrshesghhmrghilhdrtghomhdprhgtphhtthhopegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhgpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesph hoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i7c334307:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Nov 2024 13:04:23 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Subject: Re: RFC: Additional Directory for Extensions From: "David E. Wheeler" In-Reply-To: <4baa596e-f6f3-4619-96ad-26382f6986a3@eisentraut.org> Date: Wed, 20 Nov 2024 13:04:17 -0500 Cc: Craig Ringer , Gabriele Bartolini , Robert Haas , Alvaro Herrera , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <5A9D764A-6448-4DCF-9691-769FC7FD0F62@justatheory.com> References: <0d384836-7e6e-4932-af3b-8dad1f6fee43@eisentraut.org> <0D89C6B2-F294-4389-9DDA-07C381995292@justatheory.com> <04235387-120e-4bf6-b5c8-645d869222b9@eisentraut.org> <3AA66D08-D3C1-409E-A120-721ACF923EC6@justatheory.com> <4baa596e-f6f3-4619-96ad-26382f6986a3@eisentraut.org> To: Peter Eisentraut X-Mailer: Apple Mail (2.3826.200.121) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Nov 20, 2024, at 04:05, Peter Eisentraut = wrote: > The path is only consulted if the specified name does not contain a = slash. So if you do LOAD 'foo', the path is consulted, but if you do = LOAD '$libdir/foo', it is not. The problem I'm describing is that most = extensions use the latter style, per current recommendation in the = documentation. I see; some details here: https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-C-DYNLOAD And I suppose the `directory` control file variable and `MODULEDIR` make = variable make that necessary.=20 Maybe $libdir should be stripped out when installing extensions to work = with this patch? Best, David