Re: disabling an index without deleting it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> On Tue, Feb 26, 2008 at 10:48 PM, in message <13604.1204087729@xxxxxxxxxxxxx>,
Tom Lane <tgl@xxxxxxxxxxxxx> 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




---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux