Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 144F1B5DC0A for ; Tue, 20 Sep 2011 17:09:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 16138-08 for ; Tue, 20 Sep 2011 20:09:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 7E64EB5DC09 for ; Tue, 20 Sep 2011 17:09:15 -0300 (ADT) Received: from [192.168.10.3] (AMontsouris-552-1-122-245.w92-140.abo.wanadoo.fr [92.140.121.245]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 04E9F3B8F5; Tue, 20 Sep 2011 22:09:14 +0200 (CEST) Subject: Re: returning id From: Guillaume Lelarge To: Tom Lane Cc: Marc Fromm , "pgsql-admin@postgresql.org" Date: Tue, 20 Sep 2011 22:09:14 +0200 In-Reply-To: <13107.1316548537@sss.pgh.pa.us> References: <93361C67E4EE844A80935863A4FF4B6C05114F81@Exch2010MB-2.univ.dir.wwu.edu> <13107.1316548537@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3 (3.0.3-1.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1316549355.2086.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/140 X-Sequence-Number: 38377 On Tue, 2011-09-20 at 15:55 -0400, Tom Lane wrote: > Marc Fromm 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