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--