diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-08-17 15:39:17 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-08-17 15:43:09 -0400 |
commit | 54cde0c4c05807321d3f4bf96a97c376e3fa91cb (patch) | |
tree | 05581287ba6ec8092fca658e97a233563e2446aa /src/backend/utils/adt/jsonfuncs.c | |
parent | ecfe59e50fb8316ab7fc653419cd724c8b7a7dd7 (diff) | |
download | postgresql-54cde0c4c05807321d3f4bf96a97c376e3fa91cb.tar.gz postgresql-54cde0c4c05807321d3f4bf96a97c376e3fa91cb.zip |
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
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions