load 'plpgsql'; load 'plpgsql_check'; set plpgsql_check.mode = 'every_start'; create or replace function f1() returns void as $$ begin if false then raise notice '%', 1, 2; end if; end; $$ language plpgsql; select f1(); ERROR: too many parameters specified for RAISE CONTEXT: PL/pgSQL function f1() line 4 at RAISE drop function f1(); create or replace function f1() returns void as $$ begin if false then raise notice '% %'; end if; end; $$ language plpgsql; select f1(); ERROR: too few parameters specified for RAISE CONTEXT: PL/pgSQL function f1() line 4 at RAISE drop function f1();