The keyword in the procedure's error message is "function", which should be "procedure" - Mailing list pgsql-bugs

From qtds_126
Subject The keyword in the procedure's error message is "function", which should be "procedure"
Date
Msg-id 29ea5666.6ce8.1835f4b4992.Coremail.qtds_126@126.com
Whole thread Raw
Responses Re: The keyword in the procedure's error message is "function", which should be "procedure"
Re: The keyword in the procedure's error message is "function", which should be "procedure"
List pgsql-bugs
font{ line-height: 1.6; } ul,ol{ padding-left: 20px; list-style-position: inside; }
Bug Report
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.
PostgreSQL version
 11~15
Test SQL
create procedure proc_insert_t_pg_varchar(id int, v varchar)
language plpgsql
as $$
declare
iid int;
vv varchar(5);
begin
iid = id;
vv = v;
insert into t_pg_varchar values(iid, vv);
end;
$$;
Test result

Expected behavior
When an error occurs in procedure, the keyword is changed from "function" to "procedure".

Thanks.
Attachment

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: PANIC in heap_delete during ALTER TABLE
Next
From: Robins Tharakan
Date:
Subject: Re: PANIC in heap_delete during ALTER TABLE