Re: ALTER TABLE TODO items

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER TABLE TODO items
Дата
Msg-id 7488.1083775935@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ALTER TABLE TODO items  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: ALTER TABLE TODO items
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> Does using table recreate break views built against the table?

Right now it just rejects the ALTER attempt:

regression=# create table t1 (f1 int);
CREATE TABLE
regression=# create view v1 as select * from t1;
CREATE VIEW
regression=# alter table t1 alter f1 type bigint;
ERROR:  cannot alter type of a column used by a view or rule
DETAIL:  rule _RETURN on view v1 depends on column "f1"
regression=#

Improving this per the previous discussion probably ought to be
mentioned in the TODO list.
        regards, tom lane


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

Предыдущее
От: Jeff Boes
Дата:
Сообщение: pg_autovacuum misinterpreting reltuples?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Postgres Crashes