Re: PostgreSQL Constraints and Foreign Keys - Dropping Tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 8, 2022 at 2:36 PM Sbob <sbob@xxxxxxxxxxxxxxxxxxxxx> 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.

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux