Add BarrierArriveAndDetachExceptLast().
authorThomas Munro <tmunro@postgresql.org>
Thu, 19 Nov 2020 05:09:50 +0000 (18:09 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 19 Nov 2020 05:13:46 +0000 (18:13 +1300)
commit7888b0999488511e4266f2134053fa3a6505a155
tree4f22410c81fa8b08530d71d71fda71b199c93915
parent13b58f8934e6252868231c3493d49b8c2b363e5d
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
src/backend/storage/ipc/barrier.c
src/include/storage/barrier.h