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.
nodeBitmapHeapscan.c (r1.4 -> r220.127.116.11)
pgsql-committers by date
|Next:||From: User Chriskl||Date: 2005-12-02 02:18:20|
|Subject: mysqlcompat - mysqlcompat: Add benchmark(), coercibility(), bit_count() |
|Previous:||From: Tom Lane||Date: 2005-12-02 01:29:55|
|Subject: pgsql: Rearrange code in ExecInitBitmapHeapScan so that we don't |