public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: David Barbour <[email protected]>
Cc: [email protected]
Subject: Re: Syntax on BEFORE Trigger - Cascade?
Date: Thu, 13 Jun 2024 10:23:07 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAEMHB2S2GAaxS9Fsisw=7ebYB=7AMb5_4QuGFHX5G8ZXYC5KVw@mail.gmail.com>
References: <CAEMHB2S2GAaxS9Fsisw=7ebYB=7AMb5_4QuGFHX5G8ZXYC5KVw@mail.gmail.com>

David Barbour <[email protected]> writes:
> The files are appropriately deleted in Oracle, but Postgres is returning
> the following:
> *ERROR: Attempt to suppress referential action with before trigger.
> CONTEXT: SQL statement "DELETE FROM ONLY "idev"."import_file" WHERE $1
> OPERATOR(pg_catalog.=) "import_job_oid"" *

I don't know what you're running there, but there is no such error
message in community Postgres.  Having said that, maybe what you
need is to *not* have any before trigger applied to the import_file
table.

			regards, tom lane






reply

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Syntax on BEFORE Trigger - Cascade?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox