Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4B7A19FB38E for ; Sat, 4 Aug 2007 03:47:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 28956-06 for ; Sat, 4 Aug 2007 03:47:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by postgresql.org (Postfix) with ESMTP id 65FE99FB38D for ; Sat, 4 Aug 2007 03:47:29 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id k40so1313089wah for ; Fri, 03 Aug 2007 23:47:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=X0TSaJyrpYVO/knfXoktV2+YI+30hllc1YPYRvC0+QsAWYL9MXbMgDHOGOsaQdoALzFsb9/AQVzJZwFUlPpmxKeZKeswIZIiJv1tczDsjpIgM1zo65ptQr2Cy/sYuU2TYHCJEQOv+FxmXf6+C4pmbCQePqZSA5izfRS71oGQqjU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ubkKdOzWDivEAfU4eL4Mr6uMxNtzSWhIcIRGBvMB+fPCHC1UIOvyUcjvsToR1+SBKdJfLzQoxpBTqJDCEmXOLfTAcimy0kRq6bozX4nM3VhG89yPU4NOYslaV8kuIL8SiPDu4h2Dgpsod+droRLYGoOJu8cyRU/uIe+j7l6pNTg= Received: by 10.115.77.1 with SMTP id e1mr3690774wal.1186210047784; Fri, 03 Aug 2007 23:47:27 -0700 (PDT) Received: by 10.114.203.10 with HTTP; Fri, 3 Aug 2007 23:47:27 -0700 (PDT) Message-ID: <531718e20708032347q87bf7efs11e748cbb61847aa@mail.gmail.com> Date: Sat, 4 Aug 2007 08:47:27 +0200 From: "Laszlo Hornyak" To: "Oliver Jowett" Subject: Re: statement caching patch from Laszlo Hornyak for review Cc: "Dave Cramer" , "Kris Jurka" , List In-Reply-To: <46B3B590.5060600@opencloud.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_77295_6517258.1186210047759" References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> <46B1B5CE.1050409@opencloud.com> <33E43614-DF0E-4913-92DB-2E8EC4B1E156@fastcrypt.com> <46B3B590.5060600@opencloud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/36 X-Sequence-Number: 17349 ------=_Part_77295_6517258.1186210047759 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! I think, we can say that such external wrappers already exist, e.g. is commons-dbcp with its DataSource implementation. If you wish to use the JDBC drivers datasource, or don't wat to use DataSource, only a JDBC Connection, is there any other choice than writing code to the JDBC driver code? On 8/4/07, Oliver Jowett wrote: > > Dave Cramer wrote: > > Kris, Oliver, > > > > Laszlo is working on all of your recommendations, thanks for taking the > > time to review this. > > Before he throws lots more work at this -- if you are adding a wrapping > statement object (removing the dependency on the PG driver's statement > implementation), is there anything else which that ties the > implementation to the postgresql driver code? > > Seems to me that to get correct behaviour you need to wrap Statement > which also means you have to wrap Connection and so on .. at which point > the question is, does this need to be integrated with the driver at all > or can it be implemented as a separate module? > > -O > --=20 L=E1szl=F3 Horny=E1k ------=_Part_77295_6517258.1186210047759 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi!

I think, we can say that such external wrappers already exist, e= .g. is commons-dbcp with its DataSource implementation.
If you wish to u= se the JDBC drivers datasource, or don't wat to use DataSource, only a = JDBC Connection, is there any other choice than writing code to the JDBC dr= iver code?

On 8/4/07, Oliver Jowett <oliver= @opencloud.com> wrote:
Dave Cramer wrote:
> Kris, Oliver,
>
> Laszlo is working = on all of your recommendations, thanks for taking the
> time to revie= w this.

Before he throws lots more work at this -- if you are adding= a wrapping
statement object (removing the dependency on the PG driver's statem= ent
implementation), is there anything else which that ties the
imple= mentation to the postgresql driver code?

Seems to me that to get cor= rect behaviour you need to wrap Statement
which also means you have to wrap Connection and so on .. at which poin= t
the question is, does this need to be integrated with the driver at al= l
or can it be implemented as a separate module?

-O



--
<signature>
  <= ;name>
    <firstName>L=E1szl=F3</firstN= ame>
    <lastName>Horny=E1k</lastName&g= t;
  </name>
</signature> ------=_Part_77295_6517258.1186210047759--