From: | "Bossart, Nathan" <bossartn(at)amazon(dot)com> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | pg_ls_tmpdir() |
Date: | 2018-09-12 21:07:25 |
Message-ID: | 92F458A2-6459-44B8-A7F2-2ADD3225046A@amazon.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
0001-Add-pg_ls_tmpdir-function.patch | application/octet-stream | 6.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Berg | 2018-09-12 21:07:34 | Re: [patch] Support LLVM 7 |
Previous Message | Andres Freund | 2018-09-12 21:03:38 | Re: [patch] Support LLVM 7 |