Re: INSERT ... RETURNING in v8.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Allison <tom(at)tacocat(dot)net>, Vincenzo Romano <vincenzo(dot)romano(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: INSERT ... RETURNING in v8.2
Date: 2007-06-18 00:20:54
Message-ID: 12014.1182126054@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Tom Allison escribi:
>> insert into table(string) values(('one'),('two'),('three')) returning
>> idx;
>>
>> I realize that this is an extension to standard SQL but it sure would
>> save me a lot.

> You are wrong -- you can do it, but it is not an extension. It is in
> the standard.

Uh, I don't even see RETURNING as a reserved word in SQL2003.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2007-06-18 01:16:44 Re: VACUUM ANALYZE extremely slow
Previous Message Alvaro Herrera 2007-06-17 23:31:31 Re: INSERT ... RETURNING in v8.2