Would anyone happen to have any examples or be able to point me to how to write a stored procedure in C? Ive looked at http://www.postgresql.org/docs/8.1/interactive/trigger-interface.html But am still having problems with getting a compile to work on a Linux machine. (linker options etc..) Thanks, Bart