https://github.com/postgres/postgres
Revision 7c0ca2900f7cae490fd551096cb7dc581cfe45c8 authored by Robert Haas on 17 August 2017, 19:39:17 UTC, committed by Robert Haas on 17 August 2017, 19:47:29 UTC
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
1 parent de1ca69
History
Tip revision: 7c0ca2900f7cae490fd551096cb7dc581cfe45c8 authored by Robert Haas on 17 August 2017, 19:39:17 UTC
Don't lock tables in RelationGetPartitionDispatchInfo.
Tip revision: 7c0ca29
File Mode Size
config
contrib
doc
src
.dir-locals.el -rw-r--r-- 738 bytes
.gitattributes -rw-r--r-- 1.6 KB
.gitignore -rw-r--r-- 478 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.6 KB
HISTORY -rw-r--r-- 284 bytes
Makefile -rw-r--r-- 1.5 KB
README -rw-r--r-- 1.2 KB
README.git -rw-r--r-- 728 bytes
aclocal.m4 -rw-r--r-- 457 bytes
configure -rwxr-xr-x 484.4 KB
configure.in -rw-r--r-- 75.0 KB

README

back to top