personally they way I do it, is by creating temporary table, in transaction - and use it in function. Obviously that's very indirect, and not obvious if you see function's declaration. But works fine. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general