pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_ls_summariesdir().
Date: Fri, 11 Oct 2024 16:02:54 +0000
Message-ID: <E1szI6Q-000Kxi-J7@gemulon.postgresql.org> (raw)

Add pg_ls_summariesdir().

This function returns the name, size, and last modification time of
each regular file in pg_wal/summaries.  This allows administrators
to grant privileges to view the contents of this directory without
granting privileges on pg_ls_dir(), which allows listing the
contents of many other directories.  This commit also gives the
pg_monitor predefined role EXECUTE privileges on the new
pg_ls_summariesdir() function.

Bumps catversion.

Author: Yushi Ogiwara
Reviewed-by: Michael Paquier, Fujii Masao
Discussion: https://postgr.es/m/a0a3af15a9b9daa107739eb45aa9a9bc%40oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4e1fad37872e49a711adad5d9870516e5c71a375

Modified Files
--------------
doc/src/sgml/func.sgml                       | 24 ++++++++++++++++++++++++
src/backend/catalog/system_functions.sql     |  4 ++++
src/backend/utils/adt/genfile.c              |  9 +++++++++
src/include/catalog/catversion.h             |  2 +-
src/include/catalog/pg_proc.dat              |  6 ++++++
src/test/regress/expected/misc_functions.out |  6 ++++++
src/test/regress/sql/misc_functions.sql      |  1 +
7 files changed, 51 insertions(+), 1 deletion(-)



Message-ID: <E1szI6Q-000Kxi-J7@gemulon.postgresql.org>
Permalink:  ../E1szI6Q-000Kxi-J7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1szI6Q-000Kxi-J7@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: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add pg_ls_summariesdir().
  In-Reply-To: <E1szI6Q-000Kxi-J7@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