pg_ls_tmpdir()
Nathan Bossart <bossartn@amazon.com>
From: "Bossart, Nathan" <bossartn@amazon.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-09-12T21:07:25Z
Lists: pgsql-hackers
Attachments
- 0001-Add-pg_ls_tmpdir-function.patch (application/octet-stream) patch 0001
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
Commits
-
Add pg_ls_tmpdir function
- 9cd92d1a3369 12.0 landed