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 1u7ac2-002A0W-Ky for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 13:58:07 +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 1u7ac0-006cln-5s for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 13:58:04 +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 1u7abz-006cle-EG for pgsql-hackers@lists.postgresql.org; Wed, 23 Apr 2025 13:58:04 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7abv-001XiZ-15 for pgsql-hackers@lists.postgresql.org; Wed, 23 Apr 2025 13:58:01 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id ECDBE1140270; Wed, 23 Apr 2025 09:57:57 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 23 Apr 2025 09:57:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=justatheory.com; 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=1745416677; x= 1745503077; bh=oSE1ePQuibpGyAPlb/w85ewHvCEV089jp1ZX2ijv95A=; b=s MGq+VDW1XIKtqfc9OEik7Rc8emd4MgaiyZv4Lh65VdK/dUmJ9c0dDSeVxvQaiIIh 7HHnuJ9kpE4EBTaExXBsCVMRnmgf5TkVlU7BFrEaaWAnhkBVI90wk6JiwNNkIDBe Pd75aYdNhZgxS9lnRXoD4UTVffcUcfvR88aWvzRNRsf6039kDIHezsUl6p6gi8ZL sg0TJeYIV/lOanS36f3DYylMfMKKIp4cM5qYWm/2DksTf8N1/nKWFs7+NItjhzEH fFjx8IyD7RmuHhH3qklNCJxL3eJHN+PIBcbLv7YotvU0vgELNJ1jDJdoE8HGWuhG eHjf07nNVusDqdKv0To3A== 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= 1745416677; x=1745503077; bh=oSE1ePQuibpGyAPlb/w85ewHvCEV089jp1Z X2ijv95A=; b=dc7X9uX77Y7yuUaYm5bCYxgiLtwcky/tCwq/3iB9aEMK+6OiIj+ /MSjuVypfq7nWF1EiW3Kv8ziuHANo6RBFhtb1vdPUTl2tOOmekBksHTENUU8Lq6y ohfdvfqd7Blz/MOR7yINAVY8KHyiCLcKv6vC4eS8cFtKdSQfXznErWYeQQmNr0qc xqz8QrHrM1pgWZCx9xHAA27eHGF1tZ4L3Kpcbi1xDhtfwjIhLVSBKqkyFX6EarGb s9u2p3y611YcxUdKcxXtWlkhZoqFwnt2RcDCzeZqLciP63TWmyygRkuSRkBWWx4M rM1o0Jn5en7YLXGyjEqH1m9/rCmAZH4zdJA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgeeijeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurheptggguffhjgffvefkfhfvofesghdtmherhhdt jeenucfhrhhomhepfdffrghvihguucfgrdcuhghhvggvlhgvrhdfuceouggrvhhiugesjh hushhtrghthhgvohhrhidrtghomheqnecuggftrfgrthhtvghrnheptdeukeetieeluedt iedtffegkedvffdvkefgheduvdduueeileefffdutdelveegnecuffhomhgrihhnpehgih hthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegurghvihgusehjuhhsthgrthhhvghorhihrdgtohhmpdhnsggprhgtphhtth hopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehmhihonhesuggvsghirghn rdhorhhgpdhrtghpthhtohepmhgrthhhvghushhsshhilhhvleejsehgmhgrihhlrdgtoh hmpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhrtghpthht ohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: i7c334307:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Apr 2025 09:57:57 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_CE86B8B0-D68C-4E64-9B35-7EF5C7AF854D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: extension_control_path and "directory" From: "David E. Wheeler" In-Reply-To: Date: Wed, 23 Apr 2025 09:57:46 -0400 Cc: Matheus Alcantara , Peter Eisentraut , pgsql-hackers@lists.postgresql.org Message-Id: <3C304C9E-976C-4FB9-A883-707E0B90756A@justatheory.com> References: To: Christoph Berg X-Mailer: Apple Mail (2.3826.500.181.1.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_CE86B8B0-D68C-4E64-9B35-7EF5C7AF854D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Apr 23, 2025, at 09:50, Christoph Berg wrote: > Remembering which path the .control file was found in and from there > open the extension "directory" doesn't sound too hard. Why does it > have to be more complicated? This was my question, as well. Do you have a WIP patch to share, = Matheus? > Also, re-running a search path discovery for the directory is probably > just wrong, if there are different extension versions in the "control" > search path and the "extensions" search path, it might lead to weird > version skew problems. I assumed we would just have one or the other GUCs, not both. > The number of extensions using that feature is limited, though, so it > wouldn't be a huge problem: FWIW it=E2=80=99s a a simple patch to make semver work, and probably = also for the others. It=E2=80=99s just the reverse of this change[1]: ```patch --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ EXTVERSION =3D $(shell grep -m 1 = '[[:space:]]\{8\}"version":' META.json | \ DISTVERSION =3D $(shell grep -m 1 '[[:space:]]\{3\}"version":' = META.json | \ sed -e = 's/[[:space:]]*"version":[[:space:]]*"\([^"]*\)",\{0,1\}/\1/') -MODULEDIR =3D semver DATA =3D $(wildcard sql/*.sql) DOCS =3D $(wildcard doc/*.mmd) TESTS =3D $(wildcard test/sql/*.sql) --- a/semver.control +++ b/semver.control @@ -1,7 +1,5 @@ # semver extension comment =3D 'Semantic version data type' default_version =3D '0.32.1' - -directory =3D 'semver' module_pathname =3D '$libdir/semver' relocatable =3D true ``` I think I=E2=80=99ll write a blog post this week recommending people not = use these directives, and also to remove `$lib/` from `module_pathname`. Best, David [1]: https://github.com/theory/pg-semver/commit/88b3abd --Apple-Mail=_CE86B8B0-D68C-4E64-9B35-7EF5C7AF854D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd+KfmbOQis6ZycGGkt9idPjIgfEFAmgI8doACgkQkt9idPjI gfHUGw//VldJaLhtWhgng7vJviq8+4qlXBM4bgG1232hDQdyNRrX+FyYxnZgY1C1 r17Nc6iVnVfNxbbWYILcUYYxl4bwKjXctLYh2MHItrQEsg0s5FSi1Z3uXhlXRe5z ZVBE6exs7ocHAzekfWcldEzfyfDYgqdkJ/EEvWmPN9qR46NeOo6bSODRF5SQrg3i jbR+XVg5D9fh4EIv3FCqJAtnFmuIM9oWdD8UiXZfO4LevPg5Te0yCONgaVAUYrIz DnF/UdbG1ZAXLgBxHY7O3Ub4/HabXTk3BBYHJJ6ZkTmfFRjz+guj+JwQIp7hx73Y Cri2PavsuCurcivbPIuT9RrZyjatU6XAo+i4SmiZvUQpPf1YQ9l1O76u348AvAD+ jAISAP3SfZ9BA7Jl9ptP/VbiYQps3cTvu6TE2IVwQBEVCL8S0joWEkv8RFxsPi6h s3/rCqYwtnROQzETPANaAtwx/kk8O12gMIdKQOsy+s57Kt42Cw12vGiodDTHkhJU QFnxfiK+hHyHbIw+9jyKy7Njf2MNICQhCWLWQNJ1waXvDaEJUTczweZBkC9vn89c CNyXBN/bitYUPQwjukZ+K0EYUon1gY3WtQIzhwAb/m/PRNYmuwCw6rIROpEVI9Uk aqVB1NFwUr1i7IXk7NRS9YnloafjeSQnEYX1BroiDJWdbHRqQi8= =O5Nn -----END PGP SIGNATURE----- --Apple-Mail=_CE86B8B0-D68C-4E64-9B35-7EF5C7AF854D--