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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ae6d06f) | patch
Revert the commits related to allowing page lock to conflict among parallel group...
Thu, 6 Jul 2023 03:22:10 +0000 (08:52 +0530)
Thu, 6 Jul 2023 03:22:10 +0000 (08:52 +0530)
commit cc32ec24fdf3b9808617439d41b0ba7f3eb16b04
Revert the commits related to allowing page lock to conflict among parallel group members.

This commit reverts the work done by commits 3ba59ccc89 and 72e78d831a.
Those commits were incorrect in asserting that we never acquire any other
heavy-weight lock after acquring page lock other than relation extension
lock. We can acquire a lock on catalogs while doing catalog look up after
acquring page lock.

This won't impact any existing feature but we need to think some other way
to achieve this before parallelizing other write operations or even
improving the parallelism in vacuum (like allowing multiple workers
for an index).

Reported-by: Jaime Casanova
Author: Amit Kapila
Backpatch-through: 13
Discussion: https://postgr.es/m/CAJKUy5jffnRKNvRHKQ0LynRb0RJC-o4P8Ku3x9vGAVLwDBWumQ@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 によって変換されたページ (->オリジナル) /