Re: Dubious assertion in RegisterDynamicBackgroundWorker

Noah Misch <noah@leadboat.com>

From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2021-05-06T06:45:46Z
Lists: pgsql-hackers
On Wed, May 05, 2021 at 03:46:43PM -0400, Tom Lane wrote:
> I know that the parallel-worker code is held
> together with chewing gum and baling wire

Having spent time in that code, I didn't notice such weakness.  I'm sure it
has bugs, but I doubt its bug density is unusual for PostgreSQL.



Commits

  1. Be more careful about barriers when releasing BackgroundWorkerSlots.