How would you do the simple task of returning multiple rows of multiple columns in a function? ie: create function test() return int, int as 'select col1, col2 from a' language 'sql'; assuming col1 and col2 are integers.. I would like to port my db app from MS SQL to postgres and would really need this type of functionality.. Thanks Loren