Re: locks in CREATE TRIGGER, ADD FK

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: locks in CREATE TRIGGER, ADD FK
Дата
Msg-id 200503230433.j2N4X2m25327@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: locks in CREATE TRIGGER, ADD FK  (Neil Conway <neilc@samurai.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew - Supernews
Дата:
Сообщение: swapping relfilenodes (was: Re: locks in CREATE TRIGGER, ADD FK)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: swapping relfilenodes (was: Re: locks in CREATE TRIGGER,