"Randall Perry" <rgp@systame.com> writes
> What I'm having trouble with is figuring out how to grab the primary key
> value of the current row. I tried tacking on a var with the pkey row name
to
> NEW, but that doesn't work (didn't think it would).
There is an example in PG docs.
http://www.postgresql.org/docs/8.0/static/trigger-example.html
Regards,
Qingqing