pgsql: Remove overzealous assertion from PHJ.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove overzealous assertion from PHJ.
Date: 2023-04-12 21:39:31
Message-ID: E1pmiBe-002lGs-Fh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove overzealous assertion from PHJ.

We can't assert that we're the only process attached to a barrier after
BarrierArriveAndDetachExceptLast(). Although that'll be true almost
always, a late-starting parallel worker can attach very briefly (that
is, immediately detach after checking the phase) right at that moment.
BarrierArriveAndDetachExceptLast() already contains an assertion like
that, but it holds a spinlock preventing the race. This thinko caused a
one-off failure on build farm animal chimaera.

Diagnosed-by: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/3590249.1680971629@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeHash.c | 1 -
1 file changed, 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2023-04-13 02:01:26 pgsql: Skip the 004_io_direct.pl test if a pre-flight check fails.
Previous Message Alvaro Herrera 2023-04-12 18:23:08 pgsql: Revert "Adjust contrib/sepgsql regression test expected outputs.