pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: SQL procedures
Date: Wed, 8 Nov 2017 09:23:46 -0500
Message-ID: <30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com> (raw)
In-Reply-To: <CAFj8pRBUuzCxV_iOpxpJ9QOpVVzmA2=Y=i_Dq6FrNOvLF9VJpQ@mail.gmail.com>
References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com>
	<CAFj8pRBUuzCxV_iOpxpJ9QOpVVzmA2=Y=i_Dq6FrNOvLF9VJpQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 10/31/17 16:50, Pavel Stehule wrote:
> Not sure if disabling RETURN is good idea. I can imagine so optional
> returning something like int status can be good idea. Cheaper than
> raising a exception.

We could allow a RETURN without argument in PL/pgSQL, if you just want
to exit early.  That syntax is currently not available, but it should
not be hard to add.

I don't understand the point about wanting to return an int.  How would
you pass that around, since there is no declared return type?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (57+ messages)  latest in thread

Message-ID: <30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com>
Permalink:  ../30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com/
Also on:    postgresql.org/message-id/30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, pavel.stehule@gmail.com
  Subject: Re: SQL procedures
  In-Reply-To: <30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com>
  References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com> <CAFj8pRBUuzCxV_iOpxpJ9QOpVVzmA2=Y=i_Dq6FrNOvLF9VJpQ@mail.gmail.com> <30d523bb-19d6-35f0-970c-b2bc5ff27b18@2ndquadrant.com>

* 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