Add BarrierArriveAndDetachExceptLast().

Thomas Munro <tmunro@postgresql.org>

Commit: 7888b0999488511e4266f2134053fa3a6505a155
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-11-19T05:13:46Z
Releases: 14.0
Add BarrierArriveAndDetachExceptLast().

Provide a way for one process to continue the remaining phases of a
(previously) parallel computation alone.  Later patches will use this to
extend Parallel Hash Join.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKG%2BA6ftXPz4oe92%2Bx8Er%2BxpGZqto70-Q_ERwRaSyA%3DafNg%40mail.gmail.com

Files

PathChange+/−
src/backend/storage/ipc/barrier.c modified +22 −0
src/include/storage/barrier.h modified +1 −0

Discussion