We don't have the same manual then
Because extensive googling and digging through the 7.4 docs wasn't showing me a single non-trivial SQL language example.
Actually, they mostly leave out the little fact that you have to load the plpgsql language and then write your function in that (all my other functions were written in 'sql'.
The docs could be a *lot* better around triggers.
.....To the future or to the past, to a time when thought is free, when men are different from one another and do not live alone -- to a time when truth exists and what is done cannot be undone:
.....From the age of uniformity, from the age of solitude, from the age of Big Brother, from the age of doublethink -- greetings!
-- George Orwell, 1984