Tom Lane-2 wrote > Maybe you're rolling back the transaction after leaving the function? Why would it happen and how do I stop it if it is happening. I don't seem to have anything in the code to cause it.... Regards Tal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html