I\'m porting an Oracle function to Postgres which has one of the input parameters as refcursor type. The ported Postgres function looks as below.
create or replac