Re: PostgreSQL - Ordering Table based of Foreign Key

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: PostgreSQL - Ordering Table based of Foreign Key
Дата
Msg-id YVltssGwKTXiqVbK@hermes.hilbert.loc
обсуждение исходный текст
Ответ на PostgreSQL - Ordering Table based of Foreign Key  (FOUTE K. Jaurès <jauresfoute@gmail.com>)
Список pgsql-general
Am Sun, Oct 03, 2021 at 08:48:13AM +0100 schrieb FOUTE K. Jaurès:

> I want to order tables based on the foreign key so that I can delete tables
> one by one without facing "ERROR: update or delete on table "table"
> violates foreign key constraint. DETAIL: Key is still referenced from table"

drop table if exists ... cascade;

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



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

Предыдущее
От: FOUTE K. Jaurès
Дата:
Сообщение: PostgreSQL - Ordering Table based of Foreign Key
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: PostgreSQL - Ordering Table based of Foreign Key