pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Hide duplicate names from extension views 2+ messages / 1 participants [nested] [flat]
* pgsql: Hide duplicate names from extension views @ 2025-09-15 05:39 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2025-09-15 05:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Hide duplicate names from extension views If extensions of equal names were installed in different directories in the path, the views pg_available_extensions and pg_available_extension_versions would show all of them, even though only the first one was actually reachable by CREATE EXTENSION. To fix, have those views skip extensions found later in the path if they have names already found earlier. Also add a bit of documentation that only the first extension in the path can be used. Reported-by: Pierrick <pierrick.chovelon@dalibo.com> Discussion: https://www.postgresql.org/message-id/flat/8f5a0517-1cb8-4085-ae89-77e7454e27ba%40dalibo.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/bf5da5d6cae959d8119b4b137ddd9912292b8014 Modified Files -------------- doc/src/sgml/config.sgml | 6 ++++++ src/backend/commands/extension.c | 24 ++++++++++++++++++++++ .../t/001_extension_control_path.pl | 9 +++++--- 3 files changed, 36 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Hide duplicate names from extension views @ 2025-09-15 05:39 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2025-09-15 05:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Hide duplicate names from extension views If extensions of equal names were installed in different directories in the path, the views pg_available_extensions and pg_available_extension_versions would show all of them, even though only the first one was actually reachable by CREATE EXTENSION. To fix, have those views skip extensions found later in the path if they have names already found earlier. Also add a bit of documentation that only the first extension in the path can be used. Reported-by: Pierrick <pierrick.chovelon@dalibo.com> Discussion: https://www.postgresql.org/message-id/flat/8f5a0517-1cb8-4085-ae89-77e7454e27ba%40dalibo.com Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8309f3f86da8103f53193b218cabe4b904550b4a Modified Files -------------- doc/src/sgml/config.sgml | 6 ++++++ src/backend/commands/extension.c | 24 ++++++++++++++++++++++ .../t/001_extension_control_path.pl | 9 +++++--- 3 files changed, 36 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-09-15 05:39 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-09-15 05:39 pgsql: Hide duplicate names from extension views Peter Eisentraut <peter@eisentraut.org> 2025-09-15 05:39 pgsql: Hide duplicate names from extension views Peter Eisentraut <peter@eisentraut.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