On Fri, Feb 11, 2005 at 09:28:04AM +1100, Jamie Deppeler wrote: > > have a pretty simple question i know its possible to catch a delete > statement through a trigger is it possible to prevent the delete from > happing through the same trigger function? The trigger documentation describes how a trigger can affect the attempted operation: http://www.postgresql.org/docs/8.0/static/triggers.html http://www.postgresql.org/docs/8.0/static/plpgsql-trigger.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match