pgsql: Add pg_ls_logdir() and pg_ls_waldir() functions.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add pg_ls_logdir() and pg_ls_waldir() functions.
Date: 2017-03-16 19:05:07
Message-ID: E1coahv-0005bU-JJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/befd73c50f11a6c6a6719dae20f0de7b7585bef4

Modified Files
--------------
doc/src/sgml/func.sgml | 45 ++++++++++++++++-
src/backend/catalog/system_views.sql | 3 ++
src/backend/utils/adt/genfile.c | 94 ++++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 6 +++
5 files changed, 147 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-03-16 19:10:46 pgsql: Avoid access to uninitialized memory in shared tidbitmap iterati
Previous Message Robert Haas 2017-03-16 17:35:07 pgsql: postgres_fdw: Push down FULL JOINs with restriction clauses.