Re: locks in CREATE TRIGGER, ADD FK - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: locks in CREATE TRIGGER, ADD FK
Date
Msg-id 200503230433.j2N4X2m25327@candle.pha.pa.us
Whole thread Raw
In response to Re: locks in CREATE TRIGGER, ADD FK  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
Neil Conway wrote:
> Tom Lane wrote:
> > Utterly wrong.  When you commit you will physically drop the old table.
> > If there is a SELECT running against the old table it will be quite
> > unhappy after that.
> 
> How can we drop the file at commit, given that a serializable 
> transaction's snapshot should still be able to see old relfilenode's 
> content?

Vacuum will not remove any old rows because of the transaction xid so
why does it care if the table is clustered/reindexed?   It doesn't have
the table open yet.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Andrew - Supernews
Date:
Subject: swapping relfilenodes (was: Re: locks in CREATE TRIGGER, ADD FK)
Next
From: Bruce Momjian
Date:
Subject: Re: swapping relfilenodes (was: Re: locks in CREATE TRIGGER,