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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ecfe59e) | patch
Don't lock tables in RelationGetPartitionDispatchInfo.
2017年8月17日 19:39:17 +0000 (15:39 -0400)
2017年8月17日 19:43:09 +0000 (15:43 -0400)
commit 54cde0c4c05807321d3f4bf96a97c376e3fa91cb
Don't lock tables in RelationGetPartitionDispatchInfo.

Instead, lock them in the caller using find_all_inheritors so that
they get locked in the standard order, minimizing deadlock risks.

Also in RelationGetPartitionDispatchInfo, avoid opening tables which
are not partitioned; there's no need.

Amit Langote, reviewed by Ashutosh Bapat and Amit Khandekar

Discussion: http://postgr.es/m/91b36fa1-c197-b72f-ca6e-56c593bae68c@lab.ntt.co.jp
src/backend/catalog/partition.c diff | blob | blame | history
src/backend/executor/execMain.c diff | blob | blame | history
src/include/catalog/partition.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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