Allow pg_monitor to execute pg_current_logfile().
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +5 −0 |
| src/backend/catalog/system_functions.sql | modified | +4 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/test/regress/expected/misc_functions.out | modified | +20 −0 |
| src/test/regress/sql/misc_functions.sql | modified | +11 −0 |
Documentation touched
Discussion
- [PATCH] allow pg_current_logfile() execution under pg_monitor role 11 messages · 2024-02-09 → 2024-02-14