Re: [PATCHES] Updated INSERT/UPDATE RETURNING - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] Updated INSERT/UPDATE RETURNING
Date
Msg-id 1898.1154810284@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] Updated INSERT/UPDATE RETURNING  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-hackers
"Jonah H. Harris" <jonah.harris@gmail.com> writes:
> On 8/5/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> BTW, it occurs to me to wonder whether we've picked a good choice
>> of syntax.  I don't remember where the suggestion to use "RETURNING"
>> came from (did we borrow it from another DBMS?).

> Oracle.  DB2 uses something similar to SELECT * FROM (UPDATE tbl SET ... );

Oh, okay.

>> The simplest alternative that comes to mind is to use RETURNS instead
>> I don't have a strong feeling either way, but now is the time to
>> decide.

> I don't care either way, RETURNS is fine I guess.

Well, if the syntax is compatible with Oracle as-is, that's probably
a sufficient reason to stick with it.  It's not like we haven't got
any other non-spec reserved words ...

            regards, tom lane

pgsql-hackers by date:

Previous
From: Lukas Smith
Date:
Subject: Re: TODO system WAS: 8.2 features status
Next
From: Ron Mayer
Date:
Subject: Re: 8.2 features status