pgsql: Add temp_file_limit GUC parameter to constrain temporary file sp

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Date: 2011-07-17T18:19:51Z
Lists: 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(-)

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add temp_file_limit GUC parameter to constrain temporary file space usage.