diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-02-14 11:48:29 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-02-14 11:48:29 -0600 |
commit | 8d8afd48d3f298bc4d8ab2b115cc39550132bde7 (patch) | |
tree | 3f414a22a0719e4257f08cff45b8b25274c40c3a /doc/src | |
parent | 3e8235ba4f9cc3375b061fb5d3f3575434539b5f (diff) | |
download | postgresql-8d8afd48d3f298bc4d8ab2b115cc39550132bde7.tar.gz postgresql-8d8afd48d3f298bc4d8ab2b115cc39550132bde7.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 8f147a2417f..cf3de80394e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -23735,6 +23735,11 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n); <xref linkend="guc-log-destination"/>. The result reflects the contents of the <filename>current_logfiles</filename> file. + </para> + <para> + This function is restricted to superusers and roles with privileges of + the <literal>pg_monitor</literal> role by default, but other users can + be granted EXECUTE to run the function. </para></entry> </row> |