Bug ReportWhen an existing procedure is created in the database, an error message is prompted for an existing procedure.But the error message says "function" type.PostgreSQL version 11~15Test SQLcreate procedure proc_insert_t_pg_varchar(id int, v varchar)language plpgsqlas $$declareiid int;vv varchar(5);beginiid = id;vv = v;insert into t_pg_varchar values(iid, vv);end;$$;Test resultExpected behaviorWhen an error occurs in procedure, the keyword is changed from "function" to "procedure".Thanks.
When an existing procedure is created in the database, an error message is prompted for an existing procedure.But the error message says "function" type.
create procedure proc_insert_t_pg_varchar(id int, v varchar)language plpgsqlas $$declareiid int;vv varchar(5);beginiid = id;vv = v;insert into t_pg_varchar values(iid, vv);end;$$;
When an error occurs in procedure, the keyword is changed from "function" to "procedure".
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных