pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mariusz <marius@mtvk.pl>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: strange construct with RETURN within plpgsql
Date: Fri, 16 Feb 2018 14:20:03 +0100
Message-ID: <1518787203.10667.105.camel@mtvk.pl> (raw)
In-Reply-To: <CAFj8pRAEF8FiqVmcGCYDksXGw792SyniQ3e1K1Qoo73PqFp6-Q@mail.gmail.com>
References: <1518784266.10667.82.camel@mtvk.pl>
	<CAFj8pRAEF8FiqVmcGCYDksXGw792SyniQ3e1K1Qoo73PqFp6-Q@mail.gmail.com>

On Fri, 2018-02-16 at 13:51 +0100, Pavel Stehule wrote:


> It is not a bug, it is feature. Sometimes not nice. RETURN is keyword
> in procedural part, but it is nothing in sql part.
> 
thanks, i haven't thought about such an obvious thing, i feel really
ashamed.
of course it makes sense now. i guess what mislead me was that statement
var := val and forgetting that it's like select into under the hood, and
even when i put strict select into in examples i didn't spot this (it
must have been a very long week and i definitely need some rest)
thanks again

regards,
mj







view thread (7+ messages)  latest in thread

Message-ID: <1518787203.10667.105.camel@mtvk.pl>
Permalink:  ../1518787203.10667.105.camel@mtvk.pl/
Also on:    postgresql.org/message-id/1518787203.10667.105.camel@mtvk.pl

 · 

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-general@postgresql.org
  Cc: marius@mtvk.pl, pavel.stehule@gmail.com
  Subject: Re: strange construct with RETURN within plpgsql
  In-Reply-To: <1518787203.10667.105.camel@mtvk.pl>
  References: <1518784266.10667.82.camel@mtvk.pl> <CAFj8pRAEF8FiqVmcGCYDksXGw792SyniQ3e1K1Qoo73PqFp6-Q@mail.gmail.com> <1518787203.10667.105.camel@mtvk.pl>

* 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