aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-02 01:30:26 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-02 01:30:26 +0000
commit2913b95308199854e64c81e9f2f11e20d2878e0f (patch)
tree708064cd1a3f7e19e9296dfb61538a735bd34a70 /src/backend/utils/adt/formatting.c
parent3ece85f8bf43e122fc4fa647e56c72a6511cca4f (diff)
downloadpostgresql-2913b95308199854e64c81e9f2f11e20d2878e0f.tar.gz
postgresql-2913b95308199854e64c81e9f2f11e20d2878e0f.zip
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.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
0 files changed, 0 insertions, 0 deletions