pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0000qd-Ap@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d83423db869900ffa2470826de5f8255d45ff9c6

Modified Files
--------------
src/backend/catalog/pg_proc.c | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1fr7Wq-0000qd-Ap@gemulon.postgresql.org>
Permalink:  ../E1fr7Wq-0000qd-Ap@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fr7Wq-0000qd-Ap@gemulon.postgresql.org

 · 

reply

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-0000qd-Ap@gemulon.postgresql.org>
  References: <E1fr7Wq-0000qd-Ap@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