I have the following requirement,
Call a procedure with table of ID's and get the matching records from another table in PG. Eg:
CALL PROC_A(<input will be table type>, out < table type>)
CREATE PROC_A (in input <some_tbl_type>, inout output <some_tbl_typ>)
AS $$
out = select some columns
from <some_tbl>
where id in (select id from input)
$$;
How to do this in Postgres? i want to use only PROCEDURE not function.
So that i can migrate my existing code to PG.