pgsql: Further thoughts about temp_file_limit patch. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Further thoughts about temp_file_limit patch.
Date
Msg-id E1QiWf4-0002In-9D@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Further thoughts about temp_file_limit patch.  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
List pgsql-committers
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
temp_file_limit anymore.

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9473bb96d0eb7ed73f1bf5269613e6266f64ad85

Modified Files
--------------
src/backend/storage/file/fd.c |   17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Add temp_file_limit GUC parameter to constrain temporary file sp
Next
From: Robert Haas
Date:
Subject: pgsql: Add pg_opfamily_is_visible.