Re: BUG #1770: Composite type dependency broken

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1770: Composite type dependency broken
Дата
Msg-id 7886.1121405205@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1770: Composite type dependency broken  ("David Fetter" <david@fetter.org>)
Список pgsql-bugs
"David Fetter" <david@fetter.org> writes:
> create table foo (foo_id SERIAL PRIMARY KEY, foo_text TEXT NOT NULL);
> CREATE type two_foos AS (foo1 foo, foo2 foo);
> CREATE type four_foos AS (two_foo1 two_foos, two_foo2 two_foos);
> DROP TABLE foo CASCADE;

> Perhaps I have misunderstood, but I would think that both two_foos and
> four_foos would disappear as a result of this.  They don't :/

No; their columns disappear, but the types don't.  This is just the same
as not trashing an entire table when a single column's type is dropped
--- that propagates as a DROP COLUMN, not a DROP TABLE.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: BUG #1770: Composite type dependency broken
Следующее
От: Martin Edlman
Дата:
Сообщение: UTF-8 ilike case insensitive search