]> granicus.if.org Git - postgresql/commit
Improve error messages for CREATE OR REPLACE PROCEDURE
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 8 Aug 2018 18:39:26 +0000 (20:39 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 18 Aug 2018 20:05:43 +0000 (22:05 +0200)
commitd83423db869900ffa2470826de5f8255d45ff9c6
tree0cc15899071627de4f8cf7e2b0cf06a758afef28
parent47183265ed745d9ee7e0ac0798a5c88660436d4e
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>
src/backend/catalog/pg_proc.c