pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add shared tuplestores.
Date: Mon, 18 Dec 2017 22:44:20 +0000
Message-ID: <E1eR48y-0002ZV-6z@gemulon.postgresql.org> (raw)

Add shared tuplestores.

SharedTuplestore allows multiple participants to write into it and
then read the tuples back from it in parallel.  Each reader receives
partial results.

For now it always uses disk files, but other buffering policies and
other kinds of scans (ie each reader receives complete results) may be
useful in future.

The upcoming parallel hash join feature will use this facility.

Author: Thomas Munro
Reviewed-By: Peter Geoghegan, Andres Freund, Robert Haas
Discussion: https://postgr.es/m/CAEepm=2W=cOkiZxcg6qiFQP-dHUe09aqTrEMM7yJDrHMhDv_RA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab9e0e718acb9ded7e4c4b5cedc1d410690ea6ba

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c         |   2 +
src/backend/utils/sort/Makefile           |   2 +-
src/backend/utils/sort/sharedtuplestore.c | 633 ++++++++++++++++++++++++++++++
src/include/storage/lwlock.h              |   1 +
src/include/utils/sharedtuplestore.h      |  60 +++
src/tools/pgindent/typedefs.list          |   2 +
6 files changed, 699 insertions(+), 1 deletion(-)



Message-ID: <E1eR48y-0002ZV-6z@gemulon.postgresql.org>
Permalink:  ../E1eR48y-0002ZV-6z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eR48y-0002ZV-6z@gemulon.postgresql.org

 · 

reply

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 shared tuplestores.
  In-Reply-To: <E1eR48y-0002ZV-6z@gemulon.postgresql.org>
  References: <E1eR48y-0002ZV-6z@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