Further thoughts about temp_file_limit patch.
Move FileClose's decrement of temporary_files_size up, so that it will be
executed even if elog() throws an error. This is reasonable since if the
unlink() fails, the fact the file is still there is not our fault, and we
are going to forget about it anyhow. So we won't count it against
Update fileSize and temporary_files_size correctly in FileTruncate.
We probably don't have any places that truncate temp files, but fd.c
surely should not assume that.
src/backend/storage/file/fd.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
pgsql-committers by date
|Next:||From: Bruce Momjian||Date: 2011-07-17 21:08:56|
|Subject: Re: [COMMITTERS] pgsql: Add temp_file_limit GUC parameter to
constrain temporary file sp|
|Previous:||From: Tom Lane||Date: 2011-07-17 18:19:51|
|Subject: pgsql: Add temp_file_limit GUC parameter to constrain temporary filesp|