]> granicus.if.org Git - postgresql/commit
Add pg_ls_archive_statusdir function
authorMichael Paquier <michael@paquier.xyz>
Tue, 9 Oct 2018 13:29:09 +0000 (22:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 9 Oct 2018 13:29:09 +0000 (22:29 +0900)
commitc48101620151f78ee184e5f81766cbac347d9a11
tree86396a88627f0de5bcd0052dcde7dea3af5e748d
parentbfa6c5a0c974b14601b689efa4e52f6a372aee0c
Add pg_ls_archive_statusdir function

This function lists the contents of the WAL archive status directory,
and is intended to be used by monitoring tools.  Unlike pg_ls_dir(),
access to it can be granted to non-superusers so that those monitoring
tools can observe the principle of least privilege.  Access is also
given by default to members of pg_monitor.

Author:  Christoph Moench-Tegeder
Reviewed-by: Aya Iwata
Discussion: https://postgr.es/m/20180930205920.GA64534@elch.exwg.net
doc/src/sgml/func.sgml
src/backend/catalog/system_views.sql
src/backend/utils/adt/genfile.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat