Rick Casey <rick(dot)casey(at)colorado(dot)edu> writes:
> Here is the code that creates the delete trigger:
> create trigger PEDIGREES_hist_del_trig
> AFTER DELETE
> on PEDIGREES
> EXECUTE PROCEDURE logPedigreesDel();
I think you forgot FOR EACH ROW. By default, the above creates a
STATEMENT trigger, in which you don't have access to individual rows.
regards, tom lane