From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve error messages for CREATE OR REPLACE PROCEDURE
Date: Sat, 18 Aug 2018 20:08:56 +0000
Message-ID: <E1fr7Wq-0000qe-Ar@gemulon.postgresql.org> (raw)
Improve error messages for CREATE OR REPLACE PROCEDURE
Change the hint to recommend DROP PROCEDURE instead of FUNCTION. Also
make the error message when changing the return type more specific to
the case of procedures.
Reported-by: Jeremy Evans <code@jeremyevans.net>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/49c1a4da641d52effb403bf79798975975b725a9
Modified Files
--------------
src/backend/catalog/pg_proc.c | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Improve error messages for CREATE OR REPLACE PROCEDURE
In-Reply-To: <E1fr7Wq-0000qe-Ar@gemulon.postgresql.org>
References: <E1fr7Wq-0000qe-Ar@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox