Tomasz Myrta wrote:
> You can always check whether your trigger has been fired as insert or
> update trigger.
> DECLARE old_orderid integer;
> BEGIN
> if TG_OP=''UPDATE'' then
> old_orderid=OLD.orderid;
> else
> old_orderid=-1;
> end if;
Thank you, that works well enough. I'm beginning to appreciate the
complexity of working with both the familiar DRI (contraints) and
triggers, which are something I have rarely used.