Re: dropping a table with dependencies

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dropping a table with dependencies
Дата
Msg-id 1126.1049212664@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dropping a table with dependencies  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> Why does dropping a table for some dependencies give notice that the
> table is depended upon and for other dependencies that the primary key
> index for the table is depended upon?

It looks like a foreign-key constraint is marked as depending on *both*
the foreign table and the foreign table's pkey index.  Which one gets
reported depends on the luck of the draw of traversal order in the
dependency tree.

I'm not sure whether this marking is overkill, though offhand it seems
it might be.

            regards, tom lane


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

Предыдущее
От: "Peter Schueller"
Дата:
Сообщение: deferred constraint trigger problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trigger functions