Add pg_ls_logdir() and pg_ls_waldir() functions.
Robert Haas <rhaas@postgresql.org>
Add pg_ls_logdir() and pg_ls_waldir() functions. These functions are intended to be used by monitoring tools, and, unlike pg_ls_dir(), access to them can be granted to non-superusers, so that those monitoring tools can observe the principle of least privilege. Dave Page, revised by me, and also reviewed a bit by Thomas Munro. Discussion: http://postgr.es/m/CA+OCxow-X=D2fWdKy+HP+vQ1LtrgbsYQ=CshzZBqyFT5jOYrFw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +43 −2 |
| src/backend/catalog/system_views.sql | modified | +3 −0 |
| src/backend/utils/adt/genfile.c | modified | +94 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +6 −0 |
Documentation touched
Discussion
- pg_ls_waldir() & pg_ls_logdir() 7 messages · 2017-02-20 → 2017-03-17