pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add paths of extensions to pg_available_extensions
Date: Thu, 01 Jan 2026 17:15:14 +0000
Message-ID: <E1vbMGX-003sO4-0o@gemulon.postgresql.org> (raw)

Add paths of extensions to pg_available_extensions

Add a new "location" column to the pg_available_extensions and
pg_available_extension_versions views, exposing the directory where
the extension is located.

The default system location is shown as '$system', the same value
that can be used to configure the extension_control_path GUC.

User-defined locations are only visible for super users, otherwise
'<insufficient privilege>' is returned as a column value, the same
behaviour that we already use in pg_stat_activity.

I failed to resist the temptation to do a little extra editorializing of
the TAP test script.

Catalog version bumped.

Author: Matheus Alcantara <mths.dev@pm.me>
Reviewed-By: Chao Li <li.evan.chao@gmail.com>
Reviewed-By: Rohit Prasad <rohit.prasad@arm.com>
Reviewed-By: Michael Banck <mbanck@gmx.net>
Reviewed-By: Manni Wood <manni.wood@enterprisedb.com>
Reviewed-By: Euler Taveira <euler@eulerto.com>
Reviewed-By: Quan Zongliang <quanzongliang@yeah.net>

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/system-views.sgml                     |  28 ++++++
src/backend/catalog/system_views.sql               |   4 +-
src/backend/commands/extension.c                   | 109 ++++++++++++++++-----
src/include/catalog/catversion.h                   |   2 +-
src/include/catalog/pg_proc.dat                    |  10 +-
.../t/001_extension_control_path.pl                |  52 +++++++---
src/test/regress/expected/rules.out                |   6 +-
src/tools/pgindent/typedefs.list                   |   2 +-
8 files changed, 165 insertions(+), 48 deletions(-)



Message-ID: <E1vbMGX-003sO4-0o@gemulon.postgresql.org>
Permalink:  ../E1vbMGX-003sO4-0o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vbMGX-003sO4-0o@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add paths of extensions to pg_available_extensions
  In-Reply-To: <E1vbMGX-003sO4-0o@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