git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a6d7e9f) | patch
Allow page lock to conflict among parallel group members.
2020年3月21日 03:18:06 +0000 (08:48 +0530)
2020年3月21日 03:18:06 +0000 (08:48 +0530)
commit 3ba59ccc896e8877e2fbfb8d4f148904cad5f9b0
Allow page lock to conflict among parallel group members.

This is required as it is no safer for two related processes to perform
clean up in gin indexes at a time than for unrelated processes to do the
same. After acquiring page locks, we can acquire relation extension lock
but reverse never happens which means these will also not participate in
deadlock. So, avoid checking wait edges from this lock.

Currently, the parallel mode is strictly read-only, but after this patch
we have the infrastructure to allow parallel inserts and parallel copy.

Author: Dilip Kumar, Amit Kapila
Reviewed-by: Amit Kapila, Kuntal Ghosh and Sawada Masahiko
Discussion: https://postgr.es/m/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B+Ss=Gn1LA@mail.gmail.com
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/storage/lmgr/README diff | blob | blame | history
src/backend/storage/lmgr/deadlock.c diff | blob | blame | history
src/backend/storage/lmgr/lock.c diff | blob | blame | history
src/backend/storage/lmgr/proc.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /