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 1xR0kd-00000000ayv-0bC3 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Nov 2026 05:20:03 +0000 Received: from localhost ([127.0.0.1]:51860 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xR0kb-00000008jzq-3OAl for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Nov 2026 05:20:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:34704) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xR0kb-00000008jzf-21Js for pgsql-hackers@lists.postgresql.org; Wed, 11 Nov 2026 05:20:01 +0000 Received: from mail-dy1-x132e.google.com ([2607:f8b0:4864:20::132e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xR0kZ-00000000Jhd-3NFZ for pgsql-hackers@lists.postgresql.org; Wed, 11 Nov 2026 05:20:00 +0000 Received: by mail-dy1-x132e.google.com with SMTP id 5a478bee46e88-3282db206d3so2428533eec.0 for ; Tue, 10 Nov 2026 21:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794374398; x=1794979198; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=qlq8vj6XHmC+KMd/rbf70tcK+7MiOEPhnSLuQFwtF7k=; b=bxX8QiUcYOmdZ70+uFpeoJDdlTXxS3p3TfJKBebum69pZ8+Xnw3exvK03jIczF0OL6 zkZMq+2u2d1FzdEDJi+9OW2Wsku7ViiTISmel15STyRmye/icIQgpR6JV8YS+WkwZXzi PiZkOwnQpTy/3/Q+aCZJ2mAtoJXYWmZ6NfIKvLSI0DqbW2BurSkx+onU48KWk8G6P2hd Ofu3kjV26is/Wlvsh9sLH//1Ws4w/qfgvqOcUTasrTaagOqpiQA5FudW+bjC8aaRzuYR 4v4nZBAl8fzq4HH888ZTBt7aMVT0MzjNNJcKbv/o91JQTD+YZntExpcOATEpUNhAOvTz Mz3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794374398; x=1794979198; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qlq8vj6XHmC+KMd/rbf70tcK+7MiOEPhnSLuQFwtF7k=; b=oRhGxugOHfOVGUj9EGyhHBstkPU+tC+H+lc8PAFYyxH6nXsQCVd73/IXL5JnkVvPfp Ud9C2nzjHYdEWwDGfN10To5k3BMvSK58ECoF0qLIhRvqKiJiY9RVvXrtrCA1+8InSj8l nwaQIB3rOvKgeJBPOILZU775bq0bRsrJawe/F0VAZFq2FZpi11mpcAnlKvudSl/TFThN H0/ps3hFUl393JcYIFnJsnFtkZaDoularjF0YliaiYyIQ13FbBCfsIWvaGi8T1LFbcbP CP0QEw72QpfbjVM8kzeBz6VUy/ugRnsQhKH0vDvir1Rq2pFI37wTXS5WXsktsl8fqbRI 8+YQ== X-Forwarded-Encrypted: i=1; AL+hErEJ8RmCfZvOEqnF4md4c/Z1MXFwXnUWv0ty/LVhJzCprJzy3Z86KpbKalzjkT1XnfRIpc3lEQoazWroma63@lists.postgresql.org X-Gm-Message-State: APuU4Z95CCsMXJLPslzoFrki7KAdZczq89eMenx/SoHOyGsyFOzYmPIC 4jQn6Jk22NzEpT/irtkPkgVSJGX0/RBdYE9uFJKPPtk8kVfzFAYomAwK X-Gm-Gg: AYBFou2uEhTwymh1PNznUfbB9l44YrdZsT33Sr1abTO5o9TZkeFBzKyKwdsHqyaWwRg uZ5cB0/pRFeMqfGqGzoXzQnvP2uxRcadmp3e4DFvpGmOuCTxl3MfYPf0zoEwIVpCDGQNWCjwUFB u7krQL3hGJQ5z4sKeBdUU6mD2cJf3rRXc95PWhDbUfjMHKp0QK3I15dsUwVHxXfnftwiIHr7Pla YnOOkV3l7aG4FXv/mEWlOrqV09qkSwW8B/fL3aflM+x9zoPyxodfvm0xJ+Peblpo2soT11XXs1D y6QhCcqMWe8O3z1jtxNG0s0DIFo4Oy/1Zi8oi6QxUyVoB7P0epQ4z5LANd9PC31fGkR4w/Feq8u e56IpzwsIvdsUg/BYPhp1xocaqs+J1BqKwAFcgkGYu1i7GZoaHgHB0WizfF7au6cCtkLJyG6fUi wzTlgGtH3uvbZdFs/TqZwdlvAIUViqRcREr9SHHlaq3u4zhf65DcHJjnSzNKlSqdQZ59FLJdVJ6 cSU1TJQqpBrfPlTMZAIXQPwoBSt6DHYCELa0RSRLinRYS0qsFu+Xbw4b/vrd565eFIw6NmyjKdo Au7tirG+8LMnB0XohrR+98xwMzNzcjrrTohvGcU1lTSuWPFPRLEU458TmS47 X-Received: by 2002:a05:7301:22ab:b0:375:3df0:722a with SMTP id 5a478bee46e88-37685e6c898mr2352729eec.28.1794374398160; Tue, 10 Nov 2026 21:19:58 -0800 (PST) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3751fe306e3sm12606103eec.7.2026.11.10.21.19.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2026 21:19:57 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: [PATCH] doc: Fix description of relative extension "directory" setting From: Chao Li In-Reply-To: Date: Wed, 11 Nov 2026 13:19:23 +0800 Cc: Mahendrakar Srinivasarao , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Matheus Alcantara X-Mailer: Apple Mail (2.3864.700.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 11, 2026, at 00:30, Matheus Alcantara = wrote: >=20 > 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. >>=20 >> 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. >>=20 >>=20 >> 0002 looks good and is included in v4 unchanged. >>=20 >=20 > Thanks for checking! >=20 >> Two related things I noticed while testing: >>=20 >> - 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. >>=20 >=20 > Good. >=20 >> - 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. >>=20 >=20 > 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. >=20 >> 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. >=20 > v4 looks good to me, thanks!=20 >=20 V4 LGTM too. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/