Re: Trigger violates foreign key constraint - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Trigger violates foreign key constraint
Date
Msg-id a31462d5c6da7f4e267efbb6394f1a91f4cfd3c9.camel@cybertec.at
Whole thread Raw
In response to Re: Trigger violates foreign key constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Trigger violates foreign key constraint
List pgsql-hackers
On Mon, 2023-10-02 at 09:49 -0400, Tom Lane wrote:
> This is by design: triggers operate at a lower level than
> foreign keys, so an ill-conceived trigger can break an FK constraint.
> That's documented somewhere, though maybe not visibly enough.

Not having found any documentation, I propose the attached caution.

Yours,
Laurenz Albe

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Incorrect handling of OOM in WAL replay leading to data loss
Next
From: Michael Paquier
Date:
Subject: Re: [PGDOCS] Inconsistent linkends to "monitoring" views.