aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.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:43:09 -0400
commit54cde0c4c05807321d3f4bf96a97c376e3fa91cb (patch)
tree05581287ba6ec8092fca658e97a233563e2446aa /src/backend/access/gist/gistbuild.c
parentecfe59e50fb8316ab7fc653419cd724c8b7a7dd7 (diff)
downloadpostgresql-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/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions