From quanzongliang@hotmail.com Fri Mar 9 04:48:14 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 73DA29FBB43 for ; Fri, 9 Mar 2007 00:48:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 78604-08 for ; Fri, 9 Mar 2007 00:48:09 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc2-s10.bay0.hotmail.com (bay0-omc2-s10.bay0.hotmail.com [65.54.246.146]) by postgresql.org (Postfix) with ESMTP id 8B0EC9FBB37 for ; Fri, 9 Mar 2007 00:48:09 -0400 (AST) Received: from BAY106-W20 ([65.54.161.120]) by bay0-omc2-s10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 8 Mar 2007 20:48:08 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_3432ce83-ed60-46de-ae06-ef0939c92487_" X-Originating-IP: [61.195.157.138] From: QuanZongliang To: Gary Greenberg CC: Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 04:48:08 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 09 Mar 2007 04:48:08.0493 (UTC) FILETIME=[221BEDD0:01C76206] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.521 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, HTML_MESSAGE, SPF_PASS X-Spam-Level: ** X-Archive-Number: 200703/84 X-Sequence-Number: 16798 --_3432ce83-ed60-46de-ae06-ef0939c92487_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit from AbstractJdbc3Connection.java: 348 public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)349 throws SQLException350 {351 if (autoGeneratedKeys != Statement.NO_GENERATED_KEYS)352 throw new PSQLException(GT.tr("Returning autogenerated keys is not supported."), PSQLState.NOT_IMPLEMENTED);353 return prepareStatement(sql);354 }So, it is not supported.Only the prepareStatement(sql, Statement.NO_GENERATED_KEYS) can be used. From: gary@icontrol.comTo: pgsql-jdbc@postgresql.orgSubject: [JDBC] Error while retrieving generated keysDate: Thu, 8 Mar 2007 19:49:52 -0800 My application trew the following exception: org.postgresql.util.PSQLException: Returning autogenerated keys is not supported. at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:352) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:394) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:370) I am using 8.2-504.jdbc3 driver with the PostgreSql 8.0.8 on SUSE Linux. I have not seen anywhere in the documentation that this standard JDBC3 feature is not supported. Can anyone explain it to me, please. --_3432ce83-ed60-46de-ae06-ef0939c92487_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit from AbstractJdbc3Connection.java:
 
348    public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
349    throws SQLException
350    {
351        if (autoGeneratedKeys != Statement.NO_GENERATED_KEYS)
352            throw new PSQLException(GT.tr("Returning autogenerated keys is not supported."), PSQLState.NOT_IMPLEMENTED);
353        return prepareStatement(sql);
354    }

So, it is not supported.

Only the prepareStatement(sql, Statement.NO_GENERATED_KEYS) can be used.

From: gary@icontrol.com
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Error while retrieving generated keys
Date: Thu, 8 Mar 2007 19:49:52 -0800

My application trew the following exception:

 

org.postgresql.util.PSQLException: Returning autogenerated keys is not supported.

        at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:352)

        at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:394)

        at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:370)

 

I am using 8.2-504.jdbc3 driver with the PostgreSql 8.0.8 on SUSE Linux.

I have not seen anywhere in the documentation that this standard JDBC3 feature is not supported.

Can anyone explain it to me, please.

--_3432ce83-ed60-46de-ae06-ef0939c92487_-- From gary@icontrol.com Fri Mar 9 18:36:39 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D3DBE9FB942 for ; Fri, 9 Mar 2007 14:36:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 26878-07 for ; Fri, 9 Mar 2007 14:36:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by postgresql.org (Postfix) with SMTP id 8230A9FB907 for ; Fri, 9 Mar 2007 14:36:34 -0400 (AST) Received: (qmail 91288 invoked from network); 9 Mar 2007 18:36:32 -0000 Received: from 67.125.72.226 (HELO D9GKB4C1) (67.125.72.226) by relay00.pair.com with SMTP; 9 Mar 2007 18:36:32 -0000 X-pair-Authenticated: 67.125.72.226 From: "Gary Greenberg" To: Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 10:36:35 -0800 Message-ID: <030801c76279$de152100$740a3c0a@D9GKB4C1> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0309_01C76236.CFF1E100" X-Mailer: Microsoft Office Outlook 11 In-reply-to: Thread-Index: AcdiBiJppFl3dDJOQo6PYDrem67OaAAcXfzg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200703/87 X-Sequence-Number: 16801 This is a multi-part message in MIME format. ------=_NextPart_000_0309_01C76236.CFF1E100 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I see it now. It should have been, however, mentioned in documentation for the JDBC driver. I have also reviewed a recent thread http://archives.postgresql.org/pgsql-jdbc/2007-03/msg00038.php on a similar topic. The gist of it was how to overcome the deficiency of JDBC3 driver using JDBC1 features. It looks to me that you, guys, are missing the primary point: Ability to retrieve auto-generated key is one of the key features of JDB3. It exists for over 2 years and all JDBC3 drivers I know of, supports it. A lot of frameworks (JPA, Hibernate, etc.) are relying on it. It means that they won't work with PostgreSQL. It also means that developers must do a lot of extra tinkering to adopt many standard apps for PostgreSQL. In essence it means that PostgreSQL has fallen into the third world of database engines. I used to work a lot with PostgreSQL in mid-90s and loved it but I just recently returned to this world from working with Oracle, Sybase, etc. I am really disappointed that PostgreSQL is becoming a fossil. If there are no plans to make this feature work in the very near future, I'll be pushing for replacement of the engine. _____ From: QuanZongliang [mailto:quanzongliang@hotmail.com] Sent: Thursday, March 08, 2007 8:48 PM To: Gary Greenberg Cc: pgsql-jdbc@postgresql.org Subject: RE: [JDBC] Error while retrieving generated keys from AbstractJdbc3Connection.java: 348 public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) 349 throws SQLException 350 { 351 if (autoGeneratedKeys != Statement.NO_GENERATED_KEYS) 352 throw new PSQLException(GT.tr("Returning autogenerated keys is not supported."), PSQLState.NOT_IMPLEMENTED); 353 return prepareStatement(sql); 354 } So, it is not supported. Only the prepareStatement(sql, Statement.NO_GENERATED_KEYS) can be used. _____ From: gary@icontrol.com To: pgsql-jdbc@postgresql.org Subject: [JDBC] Error while retrieving generated keys Date: Thu, 8 Mar 2007 19:49:52 -0800 My application trew the following exception: org.postgresql.util.PSQLException: Returning autogenerated keys is not supported. at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3C onnection.java:352) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConn ection.java:394) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepare Statement(PoolingDataSource.java:370) I am using 8.2-504.jdbc3 driver with the PostgreSql 8.0.8 on SUSE Linux. I have not seen anywhere in the documentation that this standard JDBC3 feature is not supported. Can anyone explain it to me, please. ------=_NextPart_000_0309_01C76236.CFF1E100 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I see it now. It should have been, however, mentioned in documentation for the JDBC = driver.

I have also reviewed a recent = thread = http://archives.postgresql.org/pgsql-jdbc/2007-03/msg00038.php on a similar topic.

The gist of it was how to overcome = the deficiency of JDBC3 driver using JDBC1 = features.

It looks to me that you, guys, are = missing the primary point:

 

Ability to retrieve auto-generated = key is one of the key features of JDB3. It exists for over 2 years and all = JDBC3 drivers I know of, supports it.

A lot of frameworks (JPA, = Hibernate, etc.) are relying on it. It means that they won’t work with = PostgreSQL.

It also means that developers must = do a lot of extra tinkering to adopt many standard apps for = PostgreSQL.

In essence it means that PostgreSQL = has fallen into the third world of database = engines.

I used to work a lot with = PostgreSQL in mid-90s and loved it but I just recently returned to this world from working = with Oracle, Sybase, etc.

I am really disappointed that = PostgreSQL is becoming a fossil.

 

If there are no plans to make this = feature work in the very near future, I’ll be pushing for replacement of = the engine.

 


From: = QuanZongliang [mailto:quanzongliang@hotmail.com]
Sent: Thursday, March 08, = 2007 8:48 PM
To: Gary Greenberg
Cc: = pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] Error = while retrieving generated keys

 

from AbstractJdbc3Connection.java:
 
348    public PreparedStatement prepareStatement(String = sql, int autoGeneratedKeys)
349    throws SQLException
350    {
351        if (autoGeneratedKeys !=3D = Statement.NO_GENERATED_KEYS)
352            = throw new PSQLException(GT.tr("Returning autogenerated keys is not supported."), PSQLState.NOT_IMPLEMENTED);
353        return = prepareStatement(sql);
354    }

So, it is not supported.

Only the prepareStatement(sql, Statement.NO_GENERATED_KEYS) can be = used.


From: gary@icontrol.com
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Error while retrieving generated keys
Date: Thu, 8 Mar 2007 19:49:52 -0800

My application trew the following = exception:

 

org.postgresql.util.PSQLException: Returning = autogenerated keys is not supported.

        at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdb= c3Connection.java:352)

        at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingC= onnection.java:394)

        at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prep= areStatement(PoolingDataSource.java:370)

 

I am using 8.2-504.jdbc3 driver with the PostgreSql = 8.0.8 on SUSE Linux.

I have not seen anywhere in the documentation that = this standard JDBC3 feature is not supported.

Can anyone explain it to me, = please.

------=_NextPart_000_0309_01C76236.CFF1E100-- From heikki@enterprisedb.com Fri Mar 9 19:31:31 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DEB4A9FB3BA for ; Fri, 9 Mar 2007 15:31:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 21787-03 for ; Fri, 9 Mar 2007 15:31:20 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id A43639FB6AB for ; Fri, 9 Mar 2007 15:31:20 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1372332ugf for ; Fri, 09 Mar 2007 11:31:18 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=raKQ0trA8idZtIQ6CAm5tPrLKuFOT1WL15Ahi7zoi19XlrtMZrmII0KQRYO+kxYwNy5KLYGCbpYALEQsomNoOLfqyTLrzow5q5QD/uwbpYSqtFLAopCaAG+o6HTsT2Qqr42W6B/YCZzPlrxR6gb/WoJxSdNY1Oplo122eJlioqY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=FCoC7EVVmwvHL4iLfzjHIE5nj1lIDODLync2JhhwcgBW9QL6fosdK7gqKdAQGcaHkR2uwmoEcpg9O1DTvNm1a+LRwS1ZdCFF2rzYdovuz7ePeOUEU2iRNgXO66iJG6eWlZxM7TSGEZBOgNU2SXTmCspxq7lc0f90Ft0hB/0TeCQ= Received: by 10.66.252.4 with SMTP id z4mr10221713ugh.1173468677574; Fri, 09 Mar 2007 11:31:17 -0800 (PST) Received: from ?192.168.1.34? ( [82.3.248.250]) by mx.google.com with ESMTP id c25sm7872281ika.2007.03.09.11.31.13; Fri, 09 Mar 2007 11:31:15 -0800 (PST) Message-ID: <45F1B602.6090808@enterprisedb.com> Date: Fri, 09 Mar 2007 19:31:14 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Gary Greenberg CC: pgsql-jdbc@postgresql.org Subject: Re: Error while retrieving generated keys References: <030801c76279$de152100$740a3c0a@D9GKB4C1> In-Reply-To: <030801c76279$de152100$740a3c0a@D9GKB4C1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/88 X-Sequence-Number: 16802 Gary Greenberg wrote: > I see it now. It should have been, however, mentioned in documentation for > the JDBC driver. Agreed, this question has come up many times recently. Would you like to write a paragraph or two explaining the situation and the workaround? > In essence it means that PostgreSQL has fallen into the third world of > database engines. ... > I am really disappointed that PostgreSQL is becoming a fossil. ;-) Now you're exaggerating. > If there are no plans to make this feature work in the very near future, > I'll be pushing for replacement of the engine. Ken Johanson posted a preliminary patch in February, but there was a bunch of issues with it. This is an open source project, so if you'd like to see it happen, patches are more than welcome. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com From gary@icontrol.com Fri Mar 9 21:15:04 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C80FE9FB471 for ; Fri, 9 Mar 2007 17:15:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 49044-09 for ; Fri, 9 Mar 2007 17:14:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by postgresql.org (Postfix) with SMTP id 64C539FB46D for ; Fri, 9 Mar 2007 17:14:57 -0400 (AST) Received: (qmail 61904 invoked from network); 9 Mar 2007 21:14:55 -0000 Received: from 67.125.72.226 (HELO D9GKB4C1) (67.125.72.226) by relay00.pair.com with SMTP; 9 Mar 2007 21:14:55 -0000 X-pair-Authenticated: 67.125.72.226 From: "Gary Greenberg" To: "'Heikki Linnakangas'" Cc: Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 13:14:59 -0800 Message-ID: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0320_01C7624C.F0B21E30" X-Mailer: Microsoft Office Outlook 11 In-reply-to: <45F1B602.6090808@enterprisedb.com> Thread-Index: AcdigmteGO8+AZQ2Q4yVyqgKf0LmvgABJ9ig X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/89 X-Sequence-Number: 16803 This is a multi-part message in MIME format. ------=_NextPart_000_0320_01C7624C.F0B21E30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit See my responses inline: -----Original Message----- From: Heikki Linnakangas [mailto:hlinnaka@gmail.com] On Behalf Of Heikki Linnakangas Sent: Friday, March 09, 2007 11:31 AM To: Gary Greenberg Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Error while retrieving generated keys Gary Greenberg wrote: > I see it now. It should have been, however, mentioned in documentation for > the JDBC driver. Agreed, this question has come up many times recently. Would you like to write a paragraph or two explaining the situation and the workaround? I don't know about an easy workaround. Especially while using frameworks. I am using Spring framework with Hibernate mapping and a lot of low level Java code is hidden from me. I do not have a particular desire to go back to plain JDBC calls. If I have to, I'd replace INSERT statement with a call to a stored function returning key value. But as said in my original email it is a lot of additional hassle. > In essence it means that PostgreSQL has fallen into the third world of > database engines. ... > I am really disappointed that PostgreSQL is becoming a fossil. ;-) Now you're exaggerating. Am I? Who, in his right mind will go back from using JPA or Hibernate to plain old JDBC calls? Should we go to managing transactions manually, OR mapping, etc? It would be exaggerating if I'd offer to go back to punch cards or coding in assembler. (I do remember it). > If there are no plans to make this feature work in the very near future, > I'll be pushing for replacement of the engine. Ken Johanson posted a preliminary patch in February, but there was a bunch of issues with it. This is an open source project, so if you'd like to see it happen, patches are more than welcome. I can look up at this patch and see if I can contribute to fix it. Unfortunately I am on tight project schedule. How do I download the patch, though? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com ------=_NextPart_000_0320_01C7624C.F0B21E30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

See my responses inline:

 

-----Original Message-----
From: Heikki Linnakangas [mailto:hlinnaka@gmail.com] On Behalf Of Heikki Linnakangas
Sent: Friday, March 09, 2007 11:31 AM
To: Gary Greenberg
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Error while retrieving generated = keys

 

Gary Greenberg wrote:

> I see it now. It should have been, however, mentioned in documentation for

> the JDBC driver.

 

Agreed, this question has come up many times recently. Would you = like to

write a paragraph or two explaining the situation and the = workaround?

 

I don't know about an easy = workaround. Especially while using frameworks.

I am using Spring framework with = Hibernate mapping and a lot of low level Java code is hidden from me. I do not = have a particular desire to go back to plain JDBC calls. If I have to, I'd = replace INSERT statement with a call to a stored function returning key value. = But as said in my original email it is a lot of additional = hassle.

 

> In essence it means that PostgreSQL has fallen into the = third world of

> database engines.

...

 > I am really disappointed that PostgreSQL is becoming = a fossil.

 

;-) Now you're exaggerating.

Am I? Who, in his right mind will = go back from using JPA or Hibernate to plain old JDBC = calls?

Should we go to managing = transactions manually, OR mapping, etc?

It would be exaggerating if = I’d offer to go back to punch cards or coding in assembler. (I do remember = it).

> If there are no plans to make this feature work in the very = near future,

> I'll be pushing for replacement of the = engine.

 

Ken Johanson posted a preliminary patch in February, but there = was a

bunch of issues with it. This is an open source project, so if = you'd

like to see it happen, patches are more than = welcome.

I can look up at this patch and see = if I can contribute to fix it. Unfortunately I am on tight project = schedule.

How do I download the patch, = though?

--

   Heikki Linnakangas

   EnterpriseDB   = http://www.enterprisedb.com

------=_NextPart_000_0320_01C7624C.F0B21E30-- From heikki@enterprisedb.com Fri Mar 9 21:30:42 2007 Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0DAF29FB289 for ; Fri, 9 Mar 2007 17:30:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 13932-02 for ; Fri, 9 Mar 2007 17:30:35 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id A81869FB61B for ; Fri, 9 Mar 2007 17:30:37 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1403936ugf for ; Fri, 09 Mar 2007 13:30:33 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=gM+5u9cTMa2lUHFpDAygSAbA32aesFa3PGlhs8bv4hqZxVOvjJTQ7J2dWd1LwSX9u35M7YqaUCV3cZt8YuKfD2tyVYYk+LRQ7/a8Txwm76/OMzywGxgOeder48kbAbPappYeUXoiEgOVvbuatZkCyg53qvqXcZXHOqs4qxMchA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=faE5YVoA/+7nKw9UHJFytmAAXuLbOui2xmiul1e99mbXtELcHJt8J3GsKFFml30LTAukwX28Dt9fph8rZfkJN/RGLd4rmZOvChexZ4574s+upM0V7vvDo4Fm9hlORdDelmaTmpMfKINxdyjJarhez4RcrwAaFvl4zDQy/2FHGtA= Received: by 10.66.243.4 with SMTP id q4mr10501208ugh.1173475833435; Fri, 09 Mar 2007 13:30:33 -0800 (PST) Received: from ?192.168.1.34? ( [82.3.248.250]) by mx.google.com with ESMTP id c22sm8051063ika.2007.03.09.13.30.29; Fri, 09 Mar 2007 13:30:31 -0800 (PST) Message-ID: <45F1D1F6.3070802@enterprisedb.com> Date: Fri, 09 Mar 2007 21:30:30 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Gary Greenberg CC: pgsql-jdbc@postgresql.org Subject: Re: Error while retrieving generated keys References: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> In-Reply-To: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/90 X-Sequence-Number: 16804 Gary Greenberg wrote: > I don't know about an easy workaround. Especially while using frameworks. There's plenty of options, for example calling lastval, or using INSERT RETURNING, or stored procedures. With frameworks, I'm sure you can usually work-around by configuring the framework properly. A little bit of googling tells me that you might be able to set hibernate.jdbc.use_get_generated_keys to false, though not being a Hibernate user myself I have no idea where to put that. In any case, it would help a lot if you could write a FAQ entry of paragraph or two when you find a solution. > > I am really disappointed that PostgreSQL is becoming a fossil. > > ;-) Now you're exaggerating. > > Am I? Who, in his right mind will go back from using JPA or Hibernate to > plain old JDBC calls? > > Should we go to managing transactions manually, OR mapping, etc? The lack of one fairly new JDBC API call hardly makes the whole database management system a fossil, that's what I'm saying. > Ken Johanson posted a preliminary patch in February, but there was a > > bunch of issues with it. This is an open source project, so if you'd > > like to see it happen, patches are more than welcome. > > I can look up at this patch and see if I can contribute to fix it. > Unfortunately I am on tight project schedule. > > How do I download the patch, though? See the archives for the patch and discussion: http://archives.postgresql.org/pgsql-jdbc/2007-02/msg00074.php -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com From mclement@progress.com Fri Mar 9 21:40:45 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 211769FB9B2 for ; Fri, 9 Mar 2007 17:40:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 60136-04 for ; Fri, 9 Mar 2007 17:40:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mx1.progress.com (mx1.progress.com [192.77.186.16]) by postgresql.org (Postfix) with ESMTP id 5ADCA9FB92C for ; Fri, 9 Mar 2007 17:40:39 -0400 (AST) Received: from mx1.progress.com (127.0.0.1) by mx1.progress.com (MlfMTA v3.2r1b3) id hu7a5e0171si for ; Fri, 9 Mar 2007 16:40:27 -0500 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx1.progress.com (SonicWALL 5.0.2.8415) with ESMTP; Fri, 09 Mar 2007 16:40:27 -0500 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [172.16.2.61]) by progress.com (8.13.8/8.13.8) with ESMTP id l29LeL3H004861; Fri, 9 Mar 2007 16:40:21 -0500 (EST) Received: from MAIL03.bedford.progress.com ([172.16.2.59]) by NTEXFE01.bedford.progress.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Mar 2007 16:40:21 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C76293.898FD9FD" Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 16:40:11 -0500 Message-ID: <626C0646ACE5D544BC9675C1FB81846B338A21@MAIL03.bedford.progress.com> In-Reply-To: <030801c76279$de152100$740a3c0a@D9GKB4C1> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JDBC] Error while retrieving generated keys Thread-Index: AcdiBiJppFl3dDJOQo6PYDrem67OaAAcXfzgAAbNFqA= From: "Mike Clements" To: "Gary Greenberg" , X-OriginalArrivalTime: 09 Mar 2007 21:40:21.0682 (UTC) FILETIME=[89E92120:01C76293] X-Mlf-Version: 5.0.2.8415 X-Mlf-UniqueId: o200703092140210068674 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/91 X-Sequence-Number: 16805 This is a multi-part message in MIME format. ------_=_NextPart_001_01C76293.898FD9FD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I recently found a workaround that seems to perform the same as keygen - all in one RDB round trip, obviating the need for a second round trip to fetch the key from the sequence. =20 If you add a "RETURNING pk" clause to the INSERT statement, the JDBC execute() for this insert statement will return a ResultSet instead of a row count. You treat this ResultSet exactly like the one that would have been returned from GetGeneratedKeys(). That is, call next() and then call get() to get the pk. =20 In other words, you never call GetGeneratedKeys(). Instead, after calling statement.execute() you call statement.getResultSet(). =20 Looking at the source code for the latest JDBC driver, it looks like it would not be too difficult to implement the Connection.prepareStatement() call that specifies the columns to return as generated keys. Perhaps you could in this call add a RETURNING clause to the SQL for the same columns... just a thought, I haven't gone down that path myself because the above approach worked just fine for me. =20 HTH, =20 ________________________________ From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Gary Greenberg Sent: Friday, March 09, 2007 10:37 AM To: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Error while retrieving generated keys I see it now. It should have been, however, mentioned in documentation for the JDBC driver. I have also reviewed a recent thread http://archives.postgresql.org/pgsql-jdbc/2007-03/msg00038.php on a similar topic.=20 The gist of it was how to overcome the deficiency of JDBC3 driver using JDBC1 features. It looks to me that you, guys, are missing the primary point: =20 Ability to retrieve auto-generated key is one of the key features of JDB3. It exists for over 2 years and all JDBC3 drivers I know of, supports it. A lot of frameworks (JPA, Hibernate, etc.) are relying on it. It means that they won't work with PostgreSQL. It also means that developers must do a lot of extra tinkering to adopt many standard apps for PostgreSQL. In essence it means that PostgreSQL has fallen into the third world of database engines. I used to work a lot with PostgreSQL in mid-90s and loved it but I just recently returned to this world from working with Oracle, Sybase, etc. I am really disappointed that PostgreSQL is becoming a fossil. =20 If there are no plans to make this feature work in the very near future, I'll be pushing for replacement of the engine. =20 ________________________________ From: QuanZongliang [mailto:quanzongliang@hotmail.com]=20 Sent: Thursday, March 08, 2007 8:48 PM To: Gary Greenberg Cc: pgsql-jdbc@postgresql.org Subject: RE: [JDBC] Error while retrieving generated keys =20 from AbstractJdbc3Connection.java: =20 348 public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) 349 throws SQLException 350 { 351 if (autoGeneratedKeys !=3D Statement.NO_GENERATED_KEYS) 352 throw new PSQLException(GT.tr("Returning autogenerated keys is not supported."), PSQLState.NOT_IMPLEMENTED); 353 return prepareStatement(sql); 354 } So, it is not supported. Only the prepareStatement(sql, Statement.NO_GENERATED_KEYS) can be used. ________________________________ From: gary@icontrol.com To: pgsql-jdbc@postgresql.org Subject: [JDBC] Error while retrieving generated keys Date: Thu, 8 Mar 2007 19:49:52 -0800 My application trew the following exception: =20 org.postgresql.util.PSQLException: Returning autogenerated keys is not supported. at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJd bc3Connection.java:352) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(Delegating Connection.java:394) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.pre pareStatement(PoolingDataSource.java:370) =20 I am using 8.2-504.jdbc3 driver with the PostgreSql 8.0.8 on SUSE Linux. I have not seen anywhere in the documentation that this standard JDBC3 feature is not supported. Can anyone explain it to me, please. ------_=_NextPart_001_01C76293.898FD9FD Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I recently found a workaround that seems to perform the same as = keygen -=20 all in one RDB round trip, obviating the need for a second round trip to = fetch=20 the key from the sequence.
 
If you add a "RETURNING pk" clause to the INSERT statement, the = JDBC=20 execute() for this insert statement will return a ResultSet instead of a = row=20 count. You treat this ResultSet exactly like the one that would have = been=20 returned from GetGeneratedKeys(). That is, call next() and then call = get() to=20 get the pk.
 
In other words, you never call GetGeneratedKeys(). Instead, = after calling=20 statement.execute() you call = statement.getResultSet().
 
Looking at the source code for the latest JDBC driver, it looks = like it=20 would not be too difficult to implement the = Connection.prepareStatement() call=20 that specifies the columns to return as generated keys. Perhaps you = could in=20 this call add a RETURNING clause to the SQL for the same columns... just = a=20 thought, I haven't gone down that path myself because the above approach = worked=20 just fine for me.
 
HTH,
 

From:=20 pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] = On=20 Behalf Of Gary Greenberg
Sent: Friday, March 09, 2007 = 10:37=20 AM
To: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] = Error=20 while retrieving generated keys

I see it now. = It should=20 have been, however, mentioned in documentation for the JDBC=20 driver.

I have also = reviewed a=20 recent thread h= ttp://archives.postgresql.org/pgsql-jdbc/2007-03/msg00038.php=20 on a similar topic.

The gist of = it was how=20 to overcome the deficiency of JDBC3 driver using JDBC1=20 features.

It looks to = me that=20 you, guys, are missing the primary point:

 

Ability to = retrieve=20 auto-generated key is one of the key features of JDB3. It exists for = over 2=20 years and all JDBC3 drivers I know of, supports = it.

A lot of = frameworks=20 (JPA, Hibernate, etc.) are relying on it. It means that they won’t = work with=20 PostgreSQL.

It also means = that=20 developers must do a lot of extra tinkering to adopt many standard apps = for=20 PostgreSQL.

In essence it = means=20 that PostgreSQL has fallen into the third world of database=20 engines.

I used to = work a lot=20 with PostgreSQL in mid-90s and loved it but I just recently returned to = this=20 world from working with Oracle, Sybase, = etc.

I am really=20 disappointed that PostgreSQL is becoming a = fossil.

 

If there are = no plans=20 to make this feature work in the very near future, I’ll be pushing = for=20 replacement of the engine.

 


From:=20 QuanZongliang [mailto:quanzongliang@hotmail.com]
Sent:
Thursday, March 08, 2007 = 8:48=20 PM
To: Gary=20 Greenberg
Cc:=20 pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] Error while = retrieving=20 generated keys

 

from=20 AbstractJdbc3Connection.java:
 
348    public=20 PreparedStatement prepareStatement(String sql, int=20 autoGeneratedKeys)
349    throws=20 SQLException
350   =20 {
351        if (autoGeneratedKeys !=3D=20 Statement.NO_GENERATED_KEYS)
352    =        =20 throw new PSQLException(GT.tr("Returning autogenerated keys is not = supported."),=20 PSQLState.NOT_IMPLEMENTED);
353      &nb= sp;=20 return prepareStatement(sql);
354    }

So, it = is not=20 supported.

Only the prepareStatement(sql, = Statement.NO_GENERATED_KEYS)=20 can be used.


From: = gary@icontrol.com
To:=20 pgsql-jdbc@postgresql.org
Subject: [JDBC] Error while retrieving = generated=20 keys
Date: Thu, 8 Mar 2007 19:49:52 = -0800

My application trew the = following=20 exception:

 

org.postgresql.util.PSQLException:=20 Returning autogenerated keys is not supported.

       =20 at=20 org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdb= c3Connection.java:352)

       =20 at=20 org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingC= onnection.java:394)

       =20 at=20 org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prep= areStatement(PoolingDataSource.java:370)

 

I am using 8.2-504.jdbc3 = driver with=20 the PostgreSql 8.0.8 on SUSE Linux.

I have not seen anywhere = in the=20 documentation that this standard JDBC3 feature is not=20 supported.

Can anyone explain it to = me,=20 please.

------_=_NextPart_001_01C76293.898FD9FD-- From pg@fastcrypt.com Fri Mar 9 23:32:17 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E6C9F9FBB97 for ; Fri, 9 Mar 2007 19:32:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 40856-07 for ; Fri, 9 Mar 2007 19:32:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 6929A9FBB2F for ; Fri, 9 Mar 2007 19:32:14 -0400 (AST) Received: (qmail 15069 invoked from network); 9 Mar 2007 23:32:12 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 9 Mar 2007 23:32:12 -0000 In-Reply-To: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> References: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-24--245058678 Message-Id: <1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com> Cc: "'Heikki Linnakangas'" , From: Dave Cramer Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 18:32:33 -0500 To: Gary Greenberg X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/93 X-Sequence-Number: 16807 --Apple-Mail-24--245058678 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On 9-Mar-07, at 4:14 PM, Gary Greenberg wrote: > See my responses inline: > > > > -----Original Message----- > From: Heikki Linnakangas [mailto:hlinnaka@gmail.com] On Behalf Of =20 > Heikki Linnakangas > Sent: Friday, March 09, 2007 11:31 AM > To: Gary Greenberg > Cc: pgsql-jdbc@postgresql.org > Subject: Re: [JDBC] Error while retrieving generated keys > > > > Gary Greenberg wrote: > > > I see it now. It should have been, however, mentioned in =20 > documentation for > > > the JDBC driver. > > > > Agreed, this question has come up many times recently. Would you =20 > like to > > write a paragraph or two explaining the situation and the workaround? > > > > I don't know about an easy workaround. Especially while using =20 > frameworks. > > I am using Spring framework with Hibernate mapping and a lot of low =20= > level Java code is hidden from me. I do not have a particular =20 > desire to go back to plain JDBC calls. If I have to, I'd replace =20 > INSERT statement with a call to a stored function returning key =20 > value. But as said in my original email it is a lot of additional =20 > hassle. > > Hibernate deals with this just fine. You just have to specify the =20 correct KeyGenerator. > > > > In essence it means that PostgreSQL has fallen into the third =20 > world of > > > database engines. > > ... > > > I am really disappointed that PostgreSQL is becoming a fossil. > > > > ;-) Now you're exaggerating. > > Am I? Who, in his right mind will go back from using JPA or =20 > Hibernate to plain old JDBC calls? > > Should we go to managing transactions manually, OR mapping, etc? > > It would be exaggerating if I=92d offer to go back to punch cards or =20= > coding in assembler. (I do remember it). > > > If there are no plans to make this feature work in the very near =20 > future, > > > I'll be pushing for replacement of the engine. > > > > Ken Johanson posted a preliminary patch in February, but there was a > > bunch of issues with it. This is an open source project, so if you'd > > like to see it happen, patches are more than welcome. > > I can look up at this patch and see if I can contribute to fix it. =20 > Unfortunately I am on tight project schedule. > > How do I download the patch, though? > > -- > > Heikki Linnakangas > > EnterpriseDB http://www.enterprisedb.com > > --Apple-Mail-24--245058678 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252
On 9-Mar-07, at = 4:14 PM, Gary Greenberg wrote:

See my = responses inline:

=A0

-----Original = Message-----
From: Heikki Linnakangas [mailto:hlinnaka@gmail.com] On = Behalf Of Heikki Linnakangas
Sent: Friday, = March 09, 2007 11:31 AM
To: Gary = Greenberg
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Error while retrieving generated = keys

Gary Greenberg wrote:

> I see it now. It should have = been, however, mentioned in documentation for> the JDBC = driver.

=A0

Agreed, this question has come up = many times recently. Would you like to

write a paragraph or two explaining = the situation and the workaround?

=A0

I don't know about an easy = workaround. Especially while using frameworks.I am using Spring framework with Hibernate mapping and a = lot of low level Java code is hidden from me. I do not have a particular = desire to go back to plain JDBC calls. If I have to, I'd replace INSERT = statement with a call to a stored function returning key value. But as = said in my original email it is a lot of additional hassle.

> In essence it means that PostgreSQL has fallen into = the third world of

> database engines.

=A0> I am really disappointed that PostgreSQL is = becoming a fossil.

=A0

;-) Now you're = exaggerating.

Am I? Who, in his right mind will go back from using JPA or = Hibernate to plain old JDBC calls?Should we go to managing transactions manually, OR mapping, = etc?

It would be exaggerating if I=92d = offer to go back to punch cards or coding in assembler. (I do remember = it).

> If there are no plans to make = this feature work in the very near future,> I'll be = pushing for replacement of the engine.

=A0

Ken Johanson posted a preliminary = patch in February, but there was a

bunch of issues with it. This is an = open source project, so if you'd

like to see it happen, patches are = more than welcome.

I can look up at this patch and see = if I can contribute to fix it. Unfortunately I am on tight project = schedule.

How do I download the patch, = though?

--

=A0=A0 Heikki = Linnakangas

=A0=A0 EnterpriseDB=A0=A0 http://www.enterprisedb.com


<= /HTML>= --Apple-Mail-24--245058678-- From oliver@opencloud.com Sun Mar 11 08:46:39 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 37BB09FB3BC for ; Sun, 11 Mar 2007 05:46:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 93902-03 for ; Sun, 11 Mar 2007 05:46:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 590B39FB3B3 for ; Sun, 11 Mar 2007 05:46:33 -0300 (ADT) Received: from 222-152-182-203.jetstream.xtra.co.nz ([222.152.182.203] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1HQJhG-0005Zw-0K; Sun, 11 Mar 2007 21:46:30 +1300 Message-ID: <45F3C1E7.60501@opencloud.com> Date: Sun, 11 Mar 2007 21:46:31 +1300 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Gary Greenberg CC: pgsql-jdbc@postgresql.org Subject: Re: Error while retrieving generated keys References: <030801c76279$de152100$740a3c0a@D9GKB4C1> In-Reply-To: <030801c76279$de152100$740a3c0a@D9GKB4C1> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200703/94 X-Sequence-Number: 16808 Gary Greenberg wrote: > I see it now. It should have been, however, mentioned in documentation > for the JDBC driver. It's documented in the metadata. Don't you check the metadata? > I am really disappointed that PostgreSQL is becoming a fossil. > > If there are no plans to make this feature work in the very near future, > I’ll be pushing for replacement of the engine. Send us a patch. -O From gary@icontrol.com Mon Mar 12 17:46:08 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7E7569FB6CC for ; Mon, 12 Mar 2007 14:46:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 47005-10 for ; Mon, 12 Mar 2007 14:46:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by postgresql.org (Postfix) with SMTP id E91F19FB76A for ; Mon, 12 Mar 2007 14:46:01 -0300 (ADT) Received: (qmail 86900 invoked from network); 12 Mar 2007 17:46:00 -0000 Received: from 67.125.72.226 (HELO D9GKB4C1) (67.125.72.226) by relay03.pair.com with SMTP; 12 Mar 2007 17:46:00 -0000 X-pair-Authenticated: 67.125.72.226 From: "Gary Greenberg" To: Subject: Re: [JDBC] Error while retrieving generated keys Date: Mon, 12 Mar 2007 10:46:10 -0700 Message-ID: <005601c764ce$522dc3c0$820a3c0a@D9GKB4C1> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <45F3C1E7.60501@opencloud.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdjufaO7wNiTPYsRkmxn7tTxApTYQBEbfmw X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/75 X-Sequence-Number: 8753 What metadata I am suppose to check? May be you meant something else or you are just ignorant. Metadata gives you information about the database schema (tables, columns, etc.) but not about deficiencies of the driver. I was looking at the reference guide and JAVADOC. I am not a driver developer but I am working with databases for 30 years and I know my business. I would gladly help with the patch if I'd know where the faulty code is located. Unfortunately I cannot spend weeks searching the CVS repository for it (unless you'll pay my wages). Flaming won't help you in that. -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Oliver Jowett Sent: Sunday, March 11, 2007 12:47 AM To: Gary Greenberg Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Error while retrieving generated keys Gary Greenberg wrote: > I see it now. It should have been, however, mentioned in documentation > for the JDBC driver. It's documented in the metadata. Don't you check the metadata? > I am really disappointed that PostgreSQL is becoming a fossil. > > If there are no plans to make this feature work in the very near future, > I'll be pushing for replacement of the engine. Send us a patch. -O ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq