aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-08-17 15:39:17 -0400
committerRobert Haas <rhaas@postgresql.org>2017-08-17 15:47:29 -0400
commit7c0ca2900f7cae490fd551096cb7dc581cfe45c8 (patch)
treef16abae152a0ce5017a7fe250ac2c730daf61da0 /src/backend/executor/nodeModifyTable.c
parentde1ca6919ff8f50e09122a1001eee1420b047199 (diff)
downloadpostgresql-7c0ca2900f7cae490fd551096cb7dc581cfe45c8.tar.gz
postgresql-7c0ca2900f7cae490fd551096cb7dc581cfe45c8.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/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions