I have a PostgreSQL function that selects data and returns it via a refcursor, similar to the following declaration:
CREATE OR REPLACE FUNCTION my_function()
RETURNS refcursor AS
...
How do I retrieve data from this function via a CodeIgniter model? I can't just SELECT directly from the function as it does not return the data directly.