Re: TopoSort() fix

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Rui Hai Jiang <ruihaij@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-07-26T22:05:38Z
Lists: pgsql-hackers
On 2019-Jul-04, Rui Hai Jiang wrote:

> I'll try to figure out some  scenarios to do the test. A parallel process
> group is needed for the test.
> 
> Actually I was trying to do some testing against the locking mechanism. I
> happened to see this issue.

Hello, is anybody looking into this issue?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Add an isolation test to exercise parallel-worker deadlock resolution.

  2. Mark advisory-lock functions as parallel restricted, not parallel unsafe.

  3. Fix busted logic for parallel lock grouping in TopoSort().