Re: BUG #4125: Strange ALTER TABLE behavior

Поиск
Список
Период
Сортировка
От Vladimir Kanazir
Тема Re: BUG #4125: Strange ALTER TABLE behavior
Дата
Msg-id 200804231749.37767.vladimir@vlajko.com
обсуждение исходный текст
Ответ на Re: BUG #4125: Strange ALTER TABLE behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> > But, if I do this:
> > alter table history add incoming_id bigint;
> > alter table history alter incoming_id set default 0;
> > update history set incoming_id=0;
> > the table will be locked only during alter table execution, which
> > is very short time.
>
> But this exposes the state where incoming_id isn't zero to other
> transactions.

Yes, I can see your point... But if there is a system running, this will
lock it up even current transactions doesn't care about the new field.
That is how I noticed this :)

But, I guess, you can't make everybody happy :)
Thanks
--
Regards
Vladimir Kanazir

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: HELP pls
Следующее
От: Tom Lane
Дата:
Сообщение: Re: HELP pls