>>> On Tue, Feb 26, 2008 at 10:48 PM, in message <13604.1204087729@sss.pgh.pa.us>,
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Er, later than what? Once the DROP is pending, other transactions can
> hardly safely use the index for lookups, and what should they do about
> insertions?
Out of curiosity, couldn't any transaction using a snapshot prior to
the commit of the DROP continue to use it (just like an uncommited
DELETE of a row)? The transaction doing the DROP wouldn't maintain
it for modifications, which is fine whether it is committed or
rolled back. There would just be the matter of "vacuuming" the
index out of physical existence once all transactions which could
see it are gone.
That's probably naive, but I'm curious what I'm missing.
-Kevin