Re:Re: Connections hang indefinitely while taking a gin index's LWLock buffer_content lock

chenhj <chjischj@163.com>

From: chenhj <chjischj@163.com>
To: "Peter Geoghegan" <pg@bowt.ie>
Cc: "PostgreSQL Hackers" <pgsql-hackers@lists.postgresql.org>
Date: 2018-11-11T17:10:32Z
Lists: pgsql-hackers

Attachments


>
>BTW, I strongly doubt that disabling hugepages has fixed anything,
>though it may have accidentally masked the problem. This is an issue
>around the basic correctness of the locking protocols used by GIN.
>

We had disable hugepages for some days, but the bug still occurs.


The attachment is the gcore files that was collected when the issue occurred on the primary, and I hope to help analyze the problem.






Regard,
Chen Huajun

Commits

  1. Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0

  2. Fix wrong backpatching of ginRedoDeletePage() deadlock fix

  3. Fix deadlock in GIN vacuum introduced by 218f51584d5

  4. Prevent GIN deleted pages from being reclaimed too early

  5. Prevent deadlock in ginRedoDeletePage()

  6. Reduce page locking in GIN vacuum

  7. Fix race condition in GIN posting tree page deletion.