Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 29BFD633F9C for ; Mon, 9 Mar 2009 19:28:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 26605-03 for ; Mon, 9 Mar 2009 19:28:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.nmset.info (cop60-2-88-163-134-117.fbx.proxad.net [88.163.134.117]) by mail.postgresql.org (Postfix) with ESMTP id E8398633F12 for ; Mon, 9 Mar 2009 19:28:07 -0300 (ADT) Received: by smtp.nmset.info (Postfix, from userid 65534) id EEA0F98395; Mon, 9 Mar 2009 23:28:04 +0100 (CET) Received: from vos.nmset.info (cop60-2-88-163-134-117.fbx.proxad.net [88.163.134.117]) by smtp.nmset.info (Postfix) with ESMTP id 066949838E for ; Mon, 9 Mar 2009 23:28:02 +0100 (CET) From: "Saleem EDAH-TALLY" To: pgsql-jdbc@postgresql.org Subject: Re: getGeneratedKeys Date: Mon, 9 Mar 2009 23:26:44 +0100 User-Agent: KMail/1.11.1 (Linux/2.6.27.7; KDE/4.2.1; x86_64; ; ) References: <200903092020.58921.nmset@netcourrier.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-00=_keZtJCk44DYKucR" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903092326.44586.nmset@netcourrier.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.218 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001, RCVD_IN_SORBS_WEB=1.117, RDNS_DYNAMIC=0.1 X-Spam-Level: * X-Archive-Number: 200903/40 X-Sequence-Number: 19370 --Boundary-00=_keZtJCk44DYKucR Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I've tried for single and multiple inserts and it does work. I don't know what would be returned if a table has more than one sequence as default value for columns, I don't have need for this so I won't try. Just for curiosity, does it work by driver implementation solely or are there changes in PostgreSQL backend that help the implementation ? Thanks. > > Those are pretty old, see: > > http://archives.postgresql.org/pgsql-jdbc/2008-11/msg00041.php > > http://archives.postgresql.org/pgsql-jdbc/2009-01/msg00015.php > > The upcoming 8.4 driver will contain support for getGeneratedKeys. If you > want to test this out yourself, download the code from CVS or a prebuilt > jar from the link in the second message. > > Kris Jurka --Boundary-00=_keZtJCk44DYKucR Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I've tried for single and multiple inserts and it does work.
I don't know what would be returned if a table has more than one sequence as default value for columns, I don't have need for this so I won't try.


Just for curiosity, does it work by driver implementation solely or are there changes in PostgreSQL backend that help the implementation ?


Thanks.


>
> Those are pretty old, see:
>
> http://archives.postgresql.org/pgsql-jdbc/2008-11/msg00041.php
>
> http://archives.postgresql.org/pgsql-jdbc/2009-01/msg00015.php
>
> The upcoming 8.4 driver will contain support for getGeneratedKeys. If you
> want to test this out yourself, download the code from CVS or a prebuilt
> jar from the link in the second message.
>
> Kris Jurka



--Boundary-00=_keZtJCk44DYKucR--