pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_ls_tmpdir function
Date: Fri, 05 Oct 2018 00:29:12 +0000
Message-ID: <E1g8DzU-0000b4-GS@gemulon.postgresql.org> (raw)

Add pg_ls_tmpdir function

This lists the contents of a temporary directory associated to a given
tablespace, useful to get information about on-disk consumption caused
by temporary files used by a session query.  By default, pg_default is
scanned, and a tablespace can be specified as argument.

This function is 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.
Access is also given by default to members of pg_monitor.

Author: Nathan Bossart
Reviewed-by: Laurenz Albe
Discussion: https://postgr.es/m/92F458A2-6459-44B8-A7F2-2ADD3225046A@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9cd92d1a33699f86aa53d44ab04cc3eb50c18d11

Modified Files
--------------
doc/src/sgml/func.sgml               | 27 ++++++++++++++++
src/backend/catalog/system_views.sql |  4 +++
src/backend/utils/adt/genfile.c      | 62 ++++++++++++++++++++++++++++++++----
src/include/catalog/catversion.h     |  2 +-
src/include/catalog/pg_proc.dat      | 10 ++++++
5 files changed, 97 insertions(+), 8 deletions(-)



Message-ID: <E1g8DzU-0000b4-GS@gemulon.postgresql.org>
Permalink:  ../E1g8DzU-0000b4-GS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g8DzU-0000b4-GS@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add pg_ls_tmpdir function
  In-Reply-To: <E1g8DzU-0000b4-GS@gemulon.postgresql.org>
  References: <E1g8DzU-0000b4-GS@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox