]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Hide duplicate names from extension views
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 05:25:22 +0000 (07:25 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 05:30:00 +0000 (07:30 +0200)
commit8309f3f86da8103f53193b218cabe4b904550b4a
tree23f7aefa4e52afa84471fc67a89a87b44fa46fad
parentbee763aea13ff27ade2fe4704eaf6605b0ad4d65
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
doc/src/sgml/config.sgml
src/backend/commands/extension.c
src/test/modules/test_extensions/t/001_extension_control_path.pl