Predicate locking in GIN index

Teodor Sigaev <teodor@sigaev.ru>

Commit: 43d1ed60fdd96027f044e152176c0d45cd6bf443
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2018-03-30T11:23:17Z
Releases: 11.0
Predicate locking in GIN index

Predicate locks are used on per page basis only if fastupdate = off, in
opposite case predicate lock on pending list will effectively lock whole index,
to reduce locking overhead, just lock a relation. Entry and posting trees are
essentially B-tree, so locks are acquired on leaf pages only.

Author: Shubham Barai with some editorization by me and Dmitry Ivanov
Review by: Alexander Korotkov, Dmitry Ivanov, Fedor Sigaev
Discussion: https://www.postgresql.org/message-id/flat/CALxAEPt5sWW+EwTaKUGFL5_XFcZ0MuGBcyJ70oqbWqr42YKR8Q@mail.gmail.com

Files

Discussion