Re: returning id

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: returning id
Date: 2011-09-20 20:09:14
Message-ID: 1316549355.2086.19.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2011-09-20 at 15:55 -0400, Tom Lane wrote:
> Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu> writes:
> > Can I use "RETURNING id" in an insert statement with postgresql version 8.1.10?
>
> No. I don't recall just when RETURNING was added, but for sure it was
> after 8.1.
>

I checked. It appeared in 8.2. Sooner than I expected actually.

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Marc Fromm 2011-09-20 22:00:57 currval()
Previous Message Tom Lane 2011-09-20 19:55:37 Re: returning id