]> granicus.if.org Git - postgresql/commit
Fix possibile deadlock when dropping partitions.
authorRobert Haas <rhaas@postgresql.org>
Tue, 11 Apr 2017 13:08:36 +0000 (09:08 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 11 Apr 2017 13:08:36 +0000 (09:08 -0400)
commit258cef12540fa1cb244881a0f019cefd698c809e
tree30e5298dba1d4bdec6068e4a0ebd708187ae7cec
parentfeffa0e0795a5a99324890a6dd548ba162ec104c
Fix possibile deadlock when dropping partitions.

heap_drop_with_catalog and RangeVarCallbackForDropRelation should
lock the parent before locking the target relation.

Amit Langote

Discussion: http://postgr.es/m/29588799-a8ce-b0a2-3dae-f39ff6d35922@lab.ntt.co.jp
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c