Re: Syntax on BEFORE Trigger - Cascade?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Barbour <dbarbour(at)istation(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Syntax on BEFORE Trigger - Cascade?
Date: 2024-06-13 14:23:07
Message-ID: 1792892.1718288587@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Barbour <dbarbour(at)istation(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-06-13 14:25:25 Re: Syntax on BEFORE Trigger - Cascade?
Previous Message David Barbour 2024-06-13 14:11:01 Syntax on BEFORE Trigger - Cascade?