I have a seemingly simple question, but can't find an answer for it. So far, I've been working with MSSQL, but recently a new project came up which uses PostgreSQL for all DB related stuff, and I don't have as much experience with postgre as I'd like to have. The thing is I need to write a simple function which returns, let's say N different datasets. In MSSQL this simply would look like
-- Stored procedure creation statements
SELECT * FROM dbo.Table1
SELECT * FROM dbo.Table2
...
-- End stored procedure
Keep in mind, that all tables are different in structure (column count, names and etc.)
So far, all I've found that could help me, is SETOF, but it seems that by using it, I can only return results of same rowtype.
Any kind of help would be appreciated.