pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Fix description of $system in extension_control_path
Date: Fri, 20 Nov 2026 21:04:32 +0000
Message-ID: <E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org> (raw)

doc: Fix description of $system in extension_control_path

The documentation specifies that a list element of extension_control_path
that starts with $system gets the system extension directory substituted
for it.  However, get_extension_control_directories() only recognizes an
element that is exactly "$system" since commit 81eaaa2c41d.

Any other element, like "$system/foo", is taken as a literal path with
the "extension" suffix appended, so CREATE EXTENSION fails with a "not
an absolute path" error, while pg_available_extensions silently returns
no rows for it.

Expanding $system as a prefix doesn't fit well with the path elements
being base directories to which "extension" is appended, since $system
already points to the extension directory itself.  So, rather than
changing the behavior, fix the documentation to say that the element
must be exactly $system.

While at it, clarify that $system is the "extension" subdirectory of
pg_config --sharedir and that the "extension" suffix is not appended
to it.

Backpatch to 18, where the current behavior was introduced.

Author: Matheus Alcantara <mths.dev@pm.me>
Reviewed-by: Mahendrakar Srinivasarao <mahendrakarforpg@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/DMQTNLET8EKG.2BKGGLIOA4OQY@gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aa7d00fb754b0be820582a799612596167c3e685

Modified Files
--------------
doc/src/sgml/config.sgml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org>
Permalink:  ../E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org
  Subject: Re: pgsql: doc: Fix description of $system in extension_control_path
  In-Reply-To: <E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org>
  References: <E1xUVmZ-00000000YkF-2aQY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox