]> 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:31 +0000 (22:05 +0200)
commit49c1a4da641d52effb403bf79798975975b725a9
tree8c904a7a157c9f7903669b9bafd62e397b2130e1
parentd73093c4ffefebadd25ea855bd8745f4fcb4462a
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