I need to perform a couple of queries in a function and I need them to be in the same transaction. I understand I can't start and stop transactions from inside the functions. But are the contents of a function placed in a transaction automatically by the server, or do I have to "manually" control the transaction around the call to the function? -- Ciprian Popovici ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org