I have a POSTGRES function that returns a refcursor as output. Printing the refcursor shows an output similar to this:
A B
==========
1 dog
2 cat
3 tiger
My question is:
How can I execute a query on top of this refcursor? Something like:
select A from (function_returning_refcursor());