X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CED73529D1 for ; Fri, 1 Jul 2005 14:15:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50700-02 for ; Fri, 1 Jul 2005 17:15:51 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 88453529BD for ; Fri, 1 Jul 2005 14:15:50 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 01 Jul 2005 12:15:49 -0500 Subject: Re: XA support From: Scott Marlowe To: Heikki Linnakangas Cc: pgsql-jdbc@postgresql.org In-Reply-To: References: <84DC4D65-95BD-4CB5-AD5E-6C1E80EF6E69@fastcrypt.com> <1120078331.8208.128.camel@state.g2switchworks.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1120238149.8208.139.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 01 Jul 2005 12:15:49 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/10 X-Sequence-Number: 13158 On Thu, 2005-06-30 at 13:15, Heikki Linnakangas wrote: > On Wed, 29 Jun 2005, Scott Marlowe wrote: > > > On Wed, 2005-06-29 at 15:27, Dave Cramer wrote: > >> I see option A below as the lesser of three evils. Is it reasonable > >> to believe that people using XA would > >> know enough to allocate enough connections ? > >> > >> Optionally we could have two implementations and choose between A and B > > > > If they've used it before with jdbc, yes. It's the way Oracle does it > > too. Under Jboss you have a two to one ration of backend to frontend > > connections. I.e. every application connection going through an XA > > connector requires TWO backend connections. > > Do you mean that Oracle opens extra connections behind the scenes? That's > not what I saw happening. I ran ethereal while running the test case, and > it showed just one TCP connection and all SQL statements flowing through > that. No, our jdbc / jboss connection pooling is doing that. It needs two connections to the db for every XA transaction.