fix: Remove aggregates, procedures and window functions from schema cache and OpenAPI output
Aggregates and Window functions can't be called as RPCs in a useful way. Procedures are not supported right now, but might be added later. Resolves #2101 Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
committed by
Wolfgang Walther
parent
ded8981368
commit
bd62008e1c
Vendored
+18
@@ -2445,3 +2445,21 @@ create table test.arrays (
|
||||
numbers int[],
|
||||
numbers_mult int[][]
|
||||
);
|
||||
|
||||
-- This procedure is to confirm that procedures don't show up in the OpenAPI output right now.
|
||||
-- Procedures are not supported, yet.
|
||||
do $do$begin
|
||||
if (select current_setting('server_version_num')::int >= 110000) then
|
||||
CREATE PROCEDURE test.unsupported_proc ()
|
||||
LANGUAGE SQL AS '';
|
||||
end if;
|
||||
end $do$;
|
||||
|
||||
CREATE FUNCTION public.dummy(int) RETURNS int
|
||||
LANGUAGE SQL AS $$ SELECT 1 $$;
|
||||
|
||||
-- This aggregate is to confirm that aggregates don't show up in the OpenAPI output.
|
||||
CREATE AGGREGATE test.unsupported_agg (*) (
|
||||
SFUNC = public.dummy,
|
||||
STYPE = int
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user