Re: [PATCHES] Updated INSERT/UPDATE RETURNING

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Updated INSERT/UPDATE RETURNING
Дата
Msg-id 1898.1154810284@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Updated INSERT/UPDATE RETURNING  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Lukas Smith
Дата:
Сообщение: Re: TODO system WAS: 8.2 features status
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: 8.2 features status