Re: CASCADE/fkey order

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Samuel Nelson <valczir(dot)darkvein(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: CASCADE/fkey order
Date: 2020-07-22 15:30:43
Message-ID: CAKFQuwavM+oHux_yXO7Wv+Og=WhukqCY=UOFtXhoH2RHju9BYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 22, 2020 at 8:24 AM Samuel Nelson <valczir(dot)darkvein(at)gmail(dot)com>
wrote:

> Is there a way to force the delete to cascade to tables in a specific
> order?
>

No really, but you can defer constraint checking.

https://www.postgresql.org/docs/12/sql-set-constraints.html

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2020-07-22 15:59:06 Re: Problem with pg_service.conf
Previous Message Thomas Kellerer 2020-07-22 15:23:12 Re: Logical replication from 11.x to 12.x and "unique key violations"