>I will call the function from a postgresql trigger.>http://www.ca.postgresql.org/~petere/plsh.html
Fabulous!/JMP