pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: doc: Fix description of relative extension "directory" setting
3+ messages / 1 participants
[nested] [flat]

* pgsql: doc: Fix description of relative extension "directory" setting
@ 2026-11-20 21:04 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Daniel Gustafsson @ 2026-11-20 21:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: Fix description of relative extension "directory" setting

Commit 81eaaa2c4 changed the documentation of the 'directory' control
file parameter to say that a relative path is resolved against the
directory where the control file was found.  That is not what the code
does: a relative path is resolved against the base directory, i.e.,
the parent of the 'extension' directory in which the primary control
file was found (SHAREDIR or the corresponding extension_control_path
element).  This is what the test_extensions TAP test expects, and it
keeps the long-standing convention of "directory = 'extension/foo'"
(with MODULEDIR) working.

Restore the pre-18 wording, extended to cover extension_control_path,
and mention in the description of extension_control_path that the
'directory' setting can cause script files to be loaded from somewhere
other than the control file's directory.

Backpatch to 18, where the incorrect wording was introduced.

Author: Mahendrakar Srinivasarao <mahendrakarforpg@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Discussion: https://postgr.es/m/CABkiuWpGiLzDg4D8zRBJ6DHnwYgHqkFxz2gDstXgeOdzh6bdZQ@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3802b59db1ff94fd57d4ba1422889432d15f085d

Modified Files
--------------
doc/src/sgml/config.sgml | 4 +++-
doc/src/sgml/extend.sgml | 9 ++++++---
2 files changed, 9 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: doc: Fix description of relative extension "directory" setting
@ 2026-11-20 21:05 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Daniel Gustafsson @ 2026-11-20 21:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: Fix description of relative extension "directory" setting

Commit 81eaaa2c4 changed the documentation of the 'directory' control
file parameter to say that a relative path is resolved against the
directory where the control file was found.  That is not what the code
does: a relative path is resolved against the base directory, i.e.,
the parent of the 'extension' directory in which the primary control
file was found (SHAREDIR or the corresponding extension_control_path
element).  This is what the test_extensions TAP test expects, and it
keeps the long-standing convention of "directory = 'extension/foo'"
(with MODULEDIR) working.

Restore the pre-18 wording, extended to cover extension_control_path,
and mention in the description of extension_control_path that the
'directory' setting can cause script files to be loaded from somewhere
other than the control file's directory.

Backpatch to 18, where the incorrect wording was introduced.

Author: Mahendrakar Srinivasarao <mahendrakarforpg@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Discussion: https://postgr.es/m/CABkiuWpGiLzDg4D8zRBJ6DHnwYgHqkFxz2gDstXgeOdzh6bdZQ@mail.gmail.com
Backpatch-through: 18

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/60e0ccfaef3c09b660218b4053daf0e7b177aab3

Modified Files
--------------
doc/src/sgml/config.sgml | 4 +++-
doc/src/sgml/extend.sgml | 9 ++++++---
2 files changed, 9 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: doc: Fix description of relative extension "directory" setting
@ 2026-11-20 21:05 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Daniel Gustafsson @ 2026-11-20 21:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: Fix description of relative extension "directory" setting

Commit 81eaaa2c4 changed the documentation of the 'directory' control
file parameter to say that a relative path is resolved against the
directory where the control file was found.  That is not what the code
does: a relative path is resolved against the base directory, i.e.,
the parent of the 'extension' directory in which the primary control
file was found (SHAREDIR or the corresponding extension_control_path
element).  This is what the test_extensions TAP test expects, and it
keeps the long-standing convention of "directory = 'extension/foo'"
(with MODULEDIR) working.

Restore the pre-18 wording, extended to cover extension_control_path,
and mention in the description of extension_control_path that the
'directory' setting can cause script files to be loaded from somewhere
other than the control file's directory.

Backpatch to 18, where the incorrect wording was introduced.

Author: Mahendrakar Srinivasarao <mahendrakarforpg@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Discussion: https://postgr.es/m/CABkiuWpGiLzDg4D8zRBJ6DHnwYgHqkFxz2gDstXgeOdzh6bdZQ@mail.gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

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

Modified Files
--------------
doc/src/sgml/config.sgml | 4 +++-
doc/src/sgml/extend.sgml | 9 ++++++---
2 files changed, 9 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2026-11-20 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 21:04 pgsql: doc: Fix description of relative extension "directory" setting Daniel Gustafsson <dgustafsson@postgresql.org>
2026-11-20 21:05 pgsql: doc: Fix description of relative extension "directory" setting Daniel Gustafsson <dgustafsson@postgresql.org>
2026-11-20 21:05 pgsql: doc: Fix description of relative extension "directory" setting Daniel Gustafsson <dgustafsson@postgresql.org>

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