Add pg_ls_summariesdir().
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +24 −0 |
| src/backend/catalog/system_functions.sql | modified | +4 −0 |
| src/backend/utils/adt/genfile.c | modified | +9 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +6 −0 |
| src/test/regress/expected/misc_functions.out | modified | +6 −0 |
| src/test/regress/sql/misc_functions.sql | modified | +1 −0 |
Documentation touched
Discussion
- Function for listing pg_wal/summaries directory 9 messages · 2024-10-04 → 2024-10-11