Re: after delete trigger behavior - Mailing list pgsql-sql

From Russell Simpkins
Subject Re: after delete trigger behavior
Date
Msg-id BAY103-F32AC833BD206511D502126B5EB0@phx.gbl
Whole thread Raw
In response to Re: after delete trigger behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
>I suspect that if you read the spec carefully it would want a "triggered
>data change violation" error raised here.  My advice is not to use a
>BEFORE trigger for this.

What would you recommend then. I am using Hibernate in my java application 
and if the sort_order column (in this example column.c) gets out of sync, 
then the Hibernate application fails. In hind site, the after delete trigger 
would be the better choice.

The trigger works fine for one row deletes, but I noticed that you can't 
even do multiple row deletes with the trigger. Postgres only executes one 
row delete.




pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: after delete trigger behavior
Next
From: "Joel Fradkin"
Date:
Subject: encoding question