Re: ALTER TABLE ... REPLACE WITH

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: ALTER TABLE ... REPLACE WITH
Дата
Msg-id AANLkTinEcHpENHNaohcthaz3SRBZBqJk51yWhGrtboAE@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ALTER TABLE ... REPLACE WITH  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ALTER TABLE ... REPLACE WITH  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jan 20, 2011 at 4:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Noah Misch <noah@leadboat.com> writes:
>> Heikki's suggestion seemed straightforward, so much so that I couldn't figure
>> why nobody had done it.  That would usually mean I'm missing something.
>
> If you're willing to substitute an incompatible table, it's not clear
> why you don't just do
>
>                begin;
>                drop table t;
>                alter table t_new rename to t;
>                commit;

Because the whole source of this problem is dependency hell.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: One Role, Two Passwords
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: One Role, Two Passwords