Allow pg_monitor to execute pg_current_logfile().
commit8d8afd48d3f298bc4d8ab2b115cc39550132bde7
authorNathan Bossart <nathan@postgresql.org>
Wed, 14 Feb 2024 17:48:29 +0000 (14 11:48 -0600)
committerNathan Bossart <nathan@postgresql.org>
Wed, 14 Feb 2024 17:48:29 +0000 (14 11:48 -0600)
tree3f414a22a0719e4257f08cff45b8b25274c40c3a
parent3e8235ba4f9cc3375b061fb5d3f3575434539b5f
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
doc/src/sgml/func.sgml
src/backend/catalog/system_functions.sql
src/include/catalog/catversion.h
src/test/regress/expected/misc_functions.out
src/test/regress/sql/misc_functions.sql