]> granicus.if.org Git - postgresql/commit
Rearrange code in ExecInitBitmapHeapScan so that we don't initialize the
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Dec 2005 01:30:26 +0000 (01:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Dec 2005 01:30:26 +0000 (01:30 +0000)
commit2913b95308199854e64c81e9f2f11e20d2878e0f
tree708064cd1a3f7e19e9296dfb61538a735bd34a70
parent3ece85f8bf43e122fc4fa647e56c72a6511cca4f
Rearrange code in ExecInitBitmapHeapScan so that we don't initialize the
child plan nodes until we have acquired lock on the relation to scan.
The relative order of initialization of plan nodes isn't real important in
other cases, but it's critical here because one is supposed to lock a
relation before its indexes, not vice versa.  The original coding was at
least vulnerable to deadlock against DROP INDEX, and perhaps worse things.
src/backend/executor/nodeBitmapHeapscan.c