there is not a way to call arbitrary pl/pgsql functions. Do you want to call a postgres built-in function from within a SQL statement? or are you hoping to call an arbitrary custom function (a browser to databse RPC)?
Matt
bront responded:
2013-02-20 14:32
I was hoping to call an arbitrary function, but I have since discovered the LABKEY.query.saveRows method. Closer reading revealed that it supports transactions, and I think it will work for what I need.