pgsql: Add temp_file_limit GUC parameter to constrain temporary file sp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add temp_file_limit GUC parameter to constrain temporary file sp
Date: 2011-07-17 18:19:51
Message-ID: E1QiVwV-0001aa-41@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add temp_file_limit GUC parameter to constrain temporary file space usage.

The limit is enforced against the total amount of temp file space used by
each session.

Mark Kirkwood, reviewed by Cédric Villemain and Tatsuo Ishii

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/23e5b16c71f2706978c5f54aabd28ed23a54b6a5

Modified Files
--------------
doc/src/sgml/config.sgml | 33 +++++++++++-
src/backend/storage/file/fd.c | 69 ++++++++++++++++++++++---
src/backend/utils/errcodes.txt | 11 ++--
src/backend/utils/misc/guc.c | 15 +++++
src/backend/utils/misc/postgresql.conf.sample | 5 ++
src/include/utils/guc.h | 2 +
src/include/utils/guc_tables.h | 1 +
7 files changed, 122 insertions(+), 14 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-07-17 19:05:54 pgsql: Further thoughts about temp_file_limit patch.
Previous Message Jim Nasby 2011-07-17 17:20:25 Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-07-17 18:25:03 Re: Re: patch review : Add ability to constrain backend temporary file space
Previous Message Jim Nasby 2011-07-17 17:20:25 Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID