pg_ls_tmpdir() - Mailing list pgsql-hackers

From Bossart, Nathan
Subject pg_ls_tmpdir()
Date
Msg-id 92F458A2-6459-44B8-A7F2-2ADD3225046A@amazon.com
Whole thread Raw
Responses Re: pg_ls_tmpdir()  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-hackers
Hi hackers,

Attached is a patch to add a pg_ls_tmpdir() function that lists the
contents of a specified tablespace's pgsql_tmp directory.  This is
very similar to the existing pg_ls_logdir() and pg_ls_waldir()
functions.

By providing more visibility into the temporary file directories,
users can more easily track queries that are consuming a lot of disk
space for temporary files.  This function already provides enough
information to calculate the total temporary file usage per PID, but
it might be worthwhile to create a system view that does this, too.

I am submitting this patch for consideration in commitfest 2018-11.

Nathan


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [patch] Support LLVM 7
Next
From: Christoph Berg
Date:
Subject: Re: [patch] Support LLVM 7