Re: add column .. default

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: add column .. default
Дата
Msg-id 8868.1056034823@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: add column .. default  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: add column .. default  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> Right now if the column exists in the child table, the add column is
> rejected.  I assume that will remain.

Have you actually tried it?

regression=# create table p1 (f1 int);
CREATE TABLE
regression=# create table c1 (f2 int) inherits(p1);
CREATE TABLE
regression=# alter table p1 add column f2 int;
NOTICE:  ALTER TABLE: merging definition of column "f2" for child c1
ALTER TABLE
regression=#
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: add column .. default
Следующее
От: "Christian Plattner"
Дата:
Сообщение: Access to transaction status