From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add a barrier primitive for synchronizing backends.
Date: Thu, 30 Nov 2017 02:28:04 +0000
Message-ID: <E1eKEa4-0000m9-78@gemulon.postgresql.org> (raw)
Add a barrier primitive for synchronizing backends.
Provide support for dynamic or static parties of processes to wait for
all processes to reach point in the code before continuing.
This is similar to the mechanism of the same name in POSIX threads and
MPI, though has explicit phasing and dynamic party support like the
Java core library's Phaser.
This will be used by an upcoming patch adding support for parallel
hash joins.
Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm=2_y7oi01OjA_wLvYcWMc9_d=LaoxrY3eiROCZkB_qakA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1145acc70debacc34de01fac238defde543f4ed4
Modified Files
--------------
src/backend/storage/ipc/Makefile | 2 +-
src/backend/storage/ipc/barrier.c | 311 ++++++++++++++++++++++++++++++++++++++
src/include/storage/barrier.h | 45 ++++++
3 files changed, 357 insertions(+), 1 deletion(-)
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 a barrier primitive for synchronizing backends.
In-Reply-To: <E1eKEa4-0000m9-78@gemulon.postgresql.org>
References: <E1eKEa4-0000m9-78@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