Re: Truncate and Foreign Key Constraint question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Truncate and Foreign Key Constraint question
Дата
Msg-id 9700.1144904520@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Truncate and Foreign Key Constraint question  ("Gregory S. Williamson" <gsw@globexplorer.com>)
Список pgsql-general
"Gregory S. Williamson" <gsw@globexplorer.com> writes:
> As the sequence below shows, I dropped the FK constraint successfully, but when I run TRUNCATE collections_l it says:
> ERROR:  cannot truncate a table referenced in a foreign key constraint
> DETAIL:  Table "client_collect_rates" references "collections_l" via foreign key constraint "$2".

Hm, works for me.  Is it possible that you've got multiple
client_collect_rates tables in different schemas, and it's complaining
about some other one?  The error message doesn't show the schema of the
table ...

            regards, tom lane

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

Предыдущее
От: "Gregory S. Williamson"
Дата:
Сообщение: Truncate and Foreign Key Constraint question
Следующее
От: Yanni Chiu
Дата:
Сообщение: Re: Select first ten of each category?