From: Sbob <sbob@quadratum-braccas.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: PostgreSQL Constraints and Foreign Keys - Dropping Tables
Date: Thu, 8 Dec 2022 14:36:27 -0700
Message-ID: <134db88e-0735-1e96-cd94-3ee5bbaf8fac@quadratum-braccas.com> (raw)
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.
Is this true?
If so it 'feels' like there may be dangerous side effects, any thoughts
on any cautions and gotcha's to this approach?
Thanks in advance
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: sbob@quadratum-braccas.com, pgsql-admin@lists.postgresql.org
Subject: Re: PostgreSQL Constraints and Foreign Keys - Dropping Tables
In-Reply-To: <134db88e-0735-1e96-cd94-3ee5bbaf8fac@quadratum-braccas.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox