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 replace function gt_mlt_dtls(dtl_cur IN REFCURSOR, flag TEXT, dt DATE)
returns........
How do I pass the value for dtl_cur parameter as REFCURSOR? In Oracle, CURSOR(some select query) works for inputting a refcursor. Is it possible in PostgreSQL?