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 1tD7HW-00G2Id-HW for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Nov 2024 19:19:30 +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 1tD7HU-006tNZ-FG for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Nov 2024 19:19:29 +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 1tD7HT-006tN4-Ey for pgsql-hackers@lists.postgresql.org; Mon, 18 Nov 2024 19:19:28 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tD7HM-002ZIJ-Oa for pgsql-hackers@postgresql.org; Mon, 18 Nov 2024 19:19:26 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id DA22411401D9; Mon, 18 Nov 2024 14:19:18 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-09.internal (MEProxy); Mon, 18 Nov 2024 14:19:19 -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=1731957558; x=1732043958; bh=AIrtkHXKkhOErLCZU OnZrX4AEVgbQjNrjLPHp3w3wF4=; b=CMeMy8wPwzK2dP5BYtOn+rQUT7uboydzZ 2uiRgneMJvIrquGRNpVP0W8BVJmjsZxex3+lyxizM7PTBo/F95obN55UrRnsi0BB 22RfmJfoprNvuv7ti6y7AiMOJ1ZwSSfKMRSxU+TSCouqWHevd0OC6DyjtHdxE/Sp CmwJyWL9ig= 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=fm3; t=1731957558; x= 1732043958; bh=AIrtkHXKkhOErLCZUOnZrX4AEVgbQjNrjLPHp3w3wF4=; b=a aMxPb47HU9ydu/ZKqpT8pC9l8L59XGFu5dSlX10Ah9H0nRoxW4knWcwHoDx+ENw0 PJltjSXJ7uMedtKYGVX6sDqFD1eZa0QVmQAx72VhuLniGNvg27mxIdMewLzOHhKw M0xqwBybLckqLlT4sDb38zLji6SEjXeX5TLyuJVEtWeOiaBFt1Xqw2UVwnbnKiaq p0PD5jCaXJB/I9UjGo/cQSgBMk4xmtF17mF9gVjwawI20snT+MFad3S/9D4jfKNO GXSwN6141MLAMPEVYhAusA7VRdqNP6OyALOmU7Qxm+l/TDUUba4T/vc+wYUuhC+A ztEo0h3JL6nkJSgjdmPfQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedtgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdej necuhfhrohhmpedfffgrvhhiugcugfdrucghhhgvvghlvghrfdcuoegurghvihgusehjuh hsthgrthhhvghorhihrdgtohhmqeenucggtffrrghtthgvrhhnpeetveeigfdtueetudff jeetfeetudetjeeiudefgfetgeejkeelkeehudfguddvkeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghvihgusehjuhhsthgrthhhvgho rhihrdgtohhmpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtph htthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegtrhgr ihhgrdhrihhnghgvrhesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghpthhtohepgh grsghrihgvlhgvrdgsrghrthholhhinhhisegvnhhtvghrphhrihhsvggusgdrtghomhdp rhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtoh eprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdprhgtphhtthhopehpghhs qhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i7c334307:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Nov 2024 14:19:17 -0500 (EST) Content-Type: text/plain; charset=utf-8 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: Date: Mon, 18 Nov 2024 14:19:07 -0500 Cc: Craig Ringer , Gabriele Bartolini , Robert Haas , Alvaro Herrera , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <3AA66D08-D3C1-409E-A120-721ACF923EC6@justatheory.com> References: <202406251012.brdp2dobkf7n@alvherre.pgsql> <0d384836-7e6e-4932-af3b-8dad1f6fee43@eisentraut.org> <0D89C6B2-F294-4389-9DDA-07C381995292@justatheory.com> <04235387-120e-4bf6-b5c8-645d869222b9@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 Hi Peter, Making another pass at this proposal, I=E2=80=99m a bit confused by this = issue: On Nov 12, 2024, at 09:44, David E. Wheeler = wrote: >>>> - The biggest problem is that many extensions set in their control = file >>>>=20 >>>> module_pathname =3D '$libdir/foo' >>>>=20 >>>> This disables the use of dynamic_library_path, so this whole idea = of installing an extension elsewhere won't work that way. The obvious = solution is that extensions change this to just 'foo'. But this will = require a lot updating work for many extensions, or a lot of patching by = packagers. >=20 > Yeah, '$libdir/foo' has been the documented way to do it for quite = some time, as I recall. Perhaps the behavior of the MODULE_PATHNAME = replacement function could be changed to omit $libdir when writing the = SQL files? Elsewhere you write: > Nothing changes about shared library files. They are looked up in = dynamic_library_path or any hardcoded file name. And also point out that the way to install them is: ``` make install datadir=3D/else/where/share pkglibdir=3D/else/where/lib ``` So as long as dynamic_library_path includes /else/where/lib it should = work, just as before, no? Best, David