I've put some notes from a real case I've been working on at: http://techdocs.postgresql.org/guides/BriefTriggerExample
Any feedback/comments regarding accuracy/style etc gratefully received.
-- Richard Huxton