Re: PostgreSQL Constraints and Foreign Keys - Dropping Tables

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: PostgreSQL Constraints and Foreign Keys - Dropping Tables
Дата
Msg-id CAKFQuwb1NBGVMyNk-TZWv2CNZxMJFYQLws+rj-7F+742K==QaQ@mail.gmail.com
обсуждение исходный текст
Ответ на PostgreSQL Constraints and Foreign Keys - Dropping Tables  (Sbob <sbob@quadratum-braccas.com>)
Список pgsql-admin
On Thu, Dec 8, 2022 at 2:36 PM Sbob <sbob@quadratum-braccas.com> wrote:
I just saw a post indicating that PostgreSQL Foreign Keys and
Constraints are actually managed via triggers, therefore instead of
doing a DROP TABLE CASCADE I could just disable triggers.

Those two things don't produce the same end result...


If so it 'feels' like there may be dangerous side effects, any thoughts
on any cautions and gotcha's to this approach?


Why did you add constraints/foreign keys in the first place?

David J.

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

Предыдущее
От: Sbob
Дата:
Сообщение: PostgreSQL Constraints and Foreign Keys - Dropping Tables
Следующее
От: SASIKUMAR Devaraj
Дата:
Сообщение: How to speed WAL apply in destination