Add pg_ls_logdir() and pg_ls_waldir() functions.

Robert Haas <rhaas@postgresql.org>

Commit: befd73c50f11a6c6a6719dae20f0de7b7585bef4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-03-16T19:05:02Z
Releases: 10.0
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

Documentation touched

Discussion