I have a function some_func() that returns refcursor
:
CREATE OR REPLACE FUNCTION some_func() RETURNS refcursor AS (...)
I want to call this function from console and display the result set from the cursor returned by it. In Oracle I would write:
SELECT * FROM TABLE(some_func());
What is the equivalent of that construction on PosgreSQL?