pg_catalog.pg_proc procedure has correct proargnames array, but proargtypes is empty

From: Walker Philips <wphilips53(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: pg_catalog.pg_proc procedure has correct proargnames array, but proargtypes is empty
Date: 2022-07-15 23:37:47
Message-ID: CAFssDw=Hs5i1VNAaafNdDdvMNCF0gh7f4x=D-Of1eUJDhGin5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following function's metadata is not correctly reported in the pg_proc
table (see picture below).

CREATE OR REPLACE FUNCTION scm.get_period_type_adjustment(period_type_id
integer)
RETURNS numeric
LANGUAGE plpgsql
IMMUTABLE
AS $function$
------
begin
return (case
when period_type_id in (1) then 1.0
when period_type_id in (2, 17, 4, 3) then 0.25
when period_type_id = 10 then 0.5
else 1
end)::numeric;
end;
$function$
;

[image: image.png]

--
Walker Philips
Data Engineering Consultant
Saguaro Capital Management

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2022-07-16 00:41:04 Re: pg_catalog.pg_proc procedure has correct proargnames array, but proargtypes is empty
Previous Message Andres Freund 2022-07-15 23:30:27 Re: Makefile.global will override configure parameters if "pgsql" and "postgres" appear anywhere in the source path name