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.98.2) (envelope-from ) id 1xQokA-00000000PDy-12HT for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Nov 2026 16:30:46 +0000 Received: from localhost ([127.0.0.1]:60948 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xQok8-000000063Np-3hqZ for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Nov 2026 16:30:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:33582) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQok8-000000063Nd-2WMm for pgsql-hackers@lists.postgresql.org; Tue, 10 Nov 2026 16:30:44 +0000 Received: from mail-dl1-x1235.google.com ([2607:f8b0:4864:20::1235]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xQok6-00000000GZ0-1jzi for pgsql-hackers@lists.postgresql.org; Tue, 10 Nov 2026 16:30:44 +0000 Received: by mail-dl1-x1235.google.com with SMTP id a92af1059eb24-1b3acec6677so3386543c88.1 for ; Tue, 10 Nov 2026 08:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794328240; x=1794933040; darn=lists.postgresql.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=6IgKycZLd5uTCOUpdiywkzt41Z0qDGwKoZpaTDeb8Yk=; b=OiAvJyngu4/kTdopfhnl3uJfVBRa3yFjxoKrr0ajEyu0PlYD2Giz2I5pps7dY2ZNr8 1w6GwwTfu+juQ6riryUNdSR9ydzRFeJ5SxlFRvv3knpjL1MMhnPIo4CNISkV5c02hSdC mHEi+qU3oara9JslYRmjSo8tpOcG5coGtLz7ElVZWJa73izlV32sy+Rcd1ttAlLu4EAG jWsii6AANaOlT5v2UlVR7Za+rqnysrKj9y9+K9q92O86vTfscUQsQ8JAkC8prhXkujCo Kz/Lgx7NhOB3NZeSxJltZDOU/STMiKW0ot5ut2uT3WxXse6c5GqaOwN4vP8NCev61SHJ ocZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794328240; x=1794933040; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6IgKycZLd5uTCOUpdiywkzt41Z0qDGwKoZpaTDeb8Yk=; b=QMlMMd1/Pk9Kr/cXnkwGI6uhTyy7yY+JsGEueBH7s6R7Fg7ykhT32qr3neMZelJKVA TB1Qkk1RX4sRrGFaUCpRDszRT5KkFAJk1g1K1dduUsiFQfG1shxGALddG6oyvX2690y7 az/0L/d5tvi/tGCBRnDFN/Rd2gGEstQ4614AlBRPH+B5qTrZPh9k/Vg3HbvcT8wuIgne 7yCdhF16PNxbGHE7kScW0qNDnXMYw9FS1ykxjYmxw23q9n/9WvDyrdm7PC7QHNyIFn9A CsK6Ryw77Wb/tngQvgNNFBNR/5pNUMFKv9Si7z1VOOa2k7uD5GLABk91HzuoKSNmFSM4 E7Xw== X-Forwarded-Encrypted: i=1; AL+hErHrT1AGDXT7Rc9AkGgG96gpjxNJxtYlgKLMaJQO+8atBvoJ0ihyolQbEhdMJzTQVlTpfoEHGCNRcda4lrs6@lists.postgresql.org X-Gm-Message-State: APuU4Z8YW9B6+YcT2PdefvfqWVY8b3cPRzl8Idimh6C160kFlkHWtAOO wyWBey986DSu8/G4o8CdKH2PVQsUhHLHrq39SGLHjENW3aQseIOsrLio X-Gm-Gg: AYBFou255so7l3uk70Qiqafkg6+cTBrJbdj/vGRLzE74SnBN6FB1dW+9K5jdVwN49x9 IvFhCGa+qSp5PN3BK9u58X12Zrj2rjbbAu/+hdSDfFidvxvKrpNt0YNhnWux8pPSH5d06QR8CZG PMQLlOSZH9+nYlwoHamciWwAMp4B4Ddf8YcEleLCGP7OzAiJGtdpdzs/yoYxyxb1rN6IYg2rb9Q ae5J08juICgJTTt/81I/BBC33e+0UPdaDAbZ89WmWLDXsKnSzV/9NtrVYszmm0W0afymZInPSyy wq8lE/DDdmqz0QLN9OQiWNCzdKucpt13EVEikKTAWvBTqYnrT1d7rhyNIfRtwK/K2VXTDEyaWqg GfkiNhdxiZS4asyRKz/gNzCKbH6EVcd8yxqL2BSms0tjnIFyCNyHQ19EdFx0YTMoa1kdZSXYXr1 8nDsBWSBlF7/Nw14oag7gsXurgev7NUFTc50YOelR0HkzbrgYzfB6YcTzkG3jwA8G3VJ1q0BZ80 uwKMy8fV5N8LvpO0DRsTS5Ppa7KWFCgGSFTHWXjR5FevSuUJ1xMKU72xeo+bR/7bYrN2pvny/jJ uHlw27kP48tjHJBNpjJyRJTmnvzStLR/7rqitIVbYe96HiWj8FdVZ0g0Q+70X110v3z4jYIDk8i I9w== X-Received: by 2002:a05:7022:1181:b0:188:e51:e86a with SMTP id a92af1059eb24-1b3b5f9e98fmr3858011c88.2.1794328239307; Tue, 10 Nov 2026 08:30:39 -0800 (PST) Received: from localhost ([2804:14d:32a7:4273:dc31:f588:528b:1f97]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b3b56c4e88sm7197753c88.0.2026.11.10.08.30.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2026 08:30:37 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Nov 2026 13:30:32 -0300 Message-Id: Cc: "Chao Li" , "PostgreSQL Hackers" Subject: Re: [PATCH] doc: Fix description of relative extension "directory" setting From: "Matheus Alcantara" To: "Mahendrakar Srinivasarao" X-Mailer: aerc 0.21.0 References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue Nov 10, 2026 at 11:24 AM -03, Mahendrakar Srinivasarao wrote: >> The attached v3 includes a 0002 that fixes the docs for this. > > I can reproduce it: with extension_control_path =3D '$system/foo', > pg_available_extensions returns no rows and CREATE EXTENSION fails with > "component in parameter "extension_control_path" is not an absolute > path". It's even more confusing when combined with a valid element: > with extension_control_path =3D '$system/foo:$system', > pg_available_extensions lists the extensions from $system (the bad > element is silently skipped as a nonexistent directory), but CREATE > EXTENSION on any of them still fails with the same error, because > find_in_paths() rejects the first element before it gets to $system. > > > 0002 looks good and is included in v4 unchanged. > Thanks for checking! > Two related things I noticed while testing: > > - The long_desc of extension_control_path in guc_parameters.dat > (guc_tables.c on 18) has the same "loaded from the same directory > where the primary control file was found" sentence that 0001 fixes in > config.sgml. The new 0003 adjusts it to match. Since it's a > translatable string, I've kept it separate and meant it for master > only, so 0001 and 0002 can be backpatched without it. > Good. > - The '$system/foo:$system' inconsistency comes from find_in_paths() > and pg_available_extensions handling an invalid element differently, > and from nothing validating the value when it's set. Would a check > hook that rejects such elements at SET time be worth pursuing? One > concern is that it could break existing setups: a value like > '$system:$system/foo' works today for any extension found in $system, > but with a check hook it would be rejected, and in postgresql.conf > that would prevent the server from starting after an upgrade. > dynamic_library_path also only validates its elements when they're > used. If there's interest I can start a separate thread for that; > it's not addressed in v4. > This seems related with another discussion about an extension_control_path bug [1] that accepts an empty path element and append /extension by mistake. I think that we can discuss about this case on this other thread. > v4-0001 and v4-0002 are rebased on current master and apply cleanly to > REL_19_STABLE and REL_18_STABLE; the docs build without warnings. > v4-0003 applies on master (and REL_19_STABLE, if wanted there); it > builds and passes make check. v4 looks good to me, thanks!=20 I've moved the CF entry from drafts to PG20-4. If there is no other comments on this I think that we can mark this as Ready for Committer in the following days. [1] https://www.postgresql.org/message-id/DC2D9FA5-45C4-494F-99FC-F9B95AD4F= F55@gmail.com -- Matheus Alcantara EDB: https://www.enterprisedb.com