pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: doc: Fix description of $system in extension_control_path 3+ messages / 1 participants [nested] [flat]
* pgsql: doc: Fix description of $system in extension_control_path @ 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 $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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: doc: Fix description of $system in extension_control_path @ 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 $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 ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4fba8bb0e57c3c281cbf28f4b5e172ca89baae03 Modified Files -------------- doc/src/sgml/config.sgml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: doc: Fix description of $system in extension_control_path @ 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 $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 ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/72ab0515ef7bf08fb47487cb8589b5fd7fd8c0f1 Modified Files -------------- doc/src/sgml/config.sgml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 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 $system in extension_control_path Daniel Gustafsson <dgustafsson@postgresql.org> 2026-11-20 21:05 pgsql: doc: Fix description of $system in extension_control_path Daniel Gustafsson <dgustafsson@postgresql.org> 2026-11-20 21:05 pgsql: doc: Fix description of $system in extension_control_path 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