From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add infrastructure for sharing temporary files between backends.
Date: Sat, 02 Dec 2017 00:54:48 +0000
Message-ID: <E1eKw4u-0000Is-HY@gemulon.postgresql.org> (raw)
Add infrastructure for sharing temporary files between backends.
SharedFileSet allows temporary files to be created by one backend and
then exported for read-only access by other backends, with clean-up
managed by reference counting associated with a DSM segment. This
includes changes to fd.c and buffile.c to support the new kind of
temporary file.
This will be used by an upcoming patch adding support for parallel
hash joins.
Author: Thomas Munro
Reviewed-By: Peter Geoghegan, Andres Freund, Robert Haas, Rushabh Lathia
Discussion:
https://postgr.es/m/CAEepm=2W=cOkiZxcg6qiFQP-dHUe09aqTrEMM7yJDrHMhDv_RA@mail.gmail.comhttps://postgr.es/m/CAH2-WznJ_UgLux=_jTgCQ4yFz0iBntudsNKa1we3kN1BAG=88w@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/dc6c4c9dc2a111519b76b22daaaac86c5608223b
Modified Files
--------------
src/backend/storage/file/Makefile | 2 +-
src/backend/storage/file/buffile.c | 205 +++++++++++++++-
src/backend/storage/file/fd.c | 395 ++++++++++++++++++++++++++-----
src/backend/storage/file/sharedfileset.c | 244 +++++++++++++++++++
src/include/storage/buffile.h | 7 +
src/include/storage/fd.h | 11 +-
src/include/storage/sharedfileset.h | 45 ++++
src/tools/pgindent/typedefs.list | 1 +
8 files changed, 848 insertions(+), 62 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Add infrastructure for sharing temporary files between backends.
In-Reply-To: <E1eKw4u-0000Is-HY@gemulon.postgresql.org>
References: <E1eKw4u-0000Is-HY@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox