I'm migrated a schema from oracle to postgreSQL using AWS-SCT, packages are converted to functions in postgreSQL. I need to convert this function to procedure to compact with the code in the application middleware.
I've tried to convert to procedure, everytime i'm getting error like SQL state: 42601
and inout parameter are permitted
Kindly help to convert the function to procedure.
CREATE OR REPLACE Function "pk_audfreq$sp_audfreq"(
OUT out_a double precision,
OUT out_b double precision,
OUT out_c double precision)
RETURNS record
LANGUAGE 'plpgsql'
COST 100
VOLATILE
AS $BODY$
DECLARE
BEGIN
SELECT
MIN(audresponsetime), AVG(audresponsetime), MAX(audresponsetime)
INTO STRICT out_a, out_b, out_c
FROM public.audio_freq;
END;
$BODY$;