pgsql: Allow pg_monitor to execute pg_current_logfile().

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow pg_monitor to execute pg_current_logfile().
Date: 2024-02-14 17:49:08
Message-ID: E1raJNc-006EAc-1d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow pg_monitor to execute pg_current_logfile().

We allow roles with privileges of pg_monitor to execute functions
like pg_ls_logdir(), so it seems natural that such roles would also
be able to execute this function.

Bumps catversion.

Co-authored-by: Pavlo Golub
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/CAK7ymcLmEYWyQkiCZ64WC-HCzXAB0omM%3DYpj9B3rXe8vUAFMqw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d8afd48d3f298bc4d8ab2b115cc39550132bde7

Modified Files
--------------
doc/src/sgml/func.sgml | 5 +++++
src/backend/catalog/system_functions.sql | 4 ++++
src/include/catalog/catversion.h | 2 +-
src/test/regress/expected/misc_functions.out | 20 ++++++++++++++++++++
src/test/regress/sql/misc_functions.sql | 11 +++++++++++
5 files changed, 41 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2024-02-14 20:53:17 pgsql: Check that MyProcPid == getpid() in backend signal handlers.
Previous Message Tom Lane 2024-02-14 16:30:49 pgsql: Fix multiranges to behave more like dependent types.