Re: PL/pgSQL PERFORM with CTE - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: PL/pgSQL PERFORM with CTE
Date
Msg-id 5217C141.20802@agliodbs.com
Whole thread Raw
In response to PL/pgSQL PERFORM with CTE  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: PL/pgSQL PERFORM with CTE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 08/23/2013 01:06 PM, Marko Tiikkaja wrote:
>> Is there some reason we wouldn't use RETURN QUERY in that case, instead
>> of SELECT?  As I said above, it would be more consistent with existing
>> PL/pgSQL.
> 
> How would using the same syntax to do an entirely different thing be
> consistent?

Currently the only way to return query results to the caller is to use
some form of RETURN.  It is 100% consistent.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: PL/pgSQL PERFORM with CTE
Next
From: Pavel Stehule
Date:
Subject: Re: PL/pgSQL PERFORM with CTE