diff options
author | Robert Haas | 2017-08-17 19:39:17 +0000 |
---|---|---|
committer | Robert Haas | 2017-08-17 19:43:09 +0000 |
commit | 54cde0c4c05807321d3f4bf96a97c376e3fa91cb (patch) | |
tree | 05581287ba6ec8092fca658e97a233563e2446aa /src/backend/utils/adt/json.c | |
parent | ecfe59e50fb8316ab7fc653419cd724c8b7a7dd7 (diff) |
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/[email protected]
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions