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 2949D529F3 for ; Sun, 24 Jul 2005 01:28:14 -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 27220-09 for ; Sun, 24 Jul 2005 04:28:05 +0000 (GMT) Received: from mail102.csoft.net (lilly.csoft.net [63.111.22.101]) by svr1.postgresql.org (Postfix) with SMTP id 111BC52A07 for ; Sun, 24 Jul 2005 01:28:04 -0300 (ADT) Received: (qmail 68304 invoked by uid 3922); 24 Jul 2005 04:28:01 -0000 Date: Sun, 24 Jul 2005 00:28:01 -0400 (EDT) From: Michael Allman To: Heikki Linnakangas Cc: pgsql-jdbc@postgresql.org Subject: Re: jdbc xa support In-Reply-To: Message-ID: <20050724002628.H55910@yvyyl> References: <20050719193245.D20902@yvyyl> <20050720211921.V54984@yvyyl> <20050721203342.W75792@yvyyl> <20050722144451.T5605@yvyyl> <20050723122637.Y55069@yvyyl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/273 X-Sequence-Number: 13421 On Sun, 24 Jul 2005, Heikki Linnakangas wrote: > On Sat, 23 Jul 2005, Michael Allman wrote: > >> On a related note, can we get the backend to indicate if a transaction was >> read-only when the "PREPARE TRANSACTION" statement is called? (Also, I >> believe preparing a read-only transaction should automatically "commit" >> it.) We could then return XA_RDONLY from the driver's prepare() method in >> that case. As it is, it either throws an exception or returns XA_OK. > > It should be possible, but we're already past the feature freeze so it'll > have to wait for version 8.2. The backend already keeps track which > transactions are read-only, and skips updating the clog for them. That > information just needs to be exposed. Cool. It would be a nice optimization to incorporate in the driver when it becomes available in the backend. Michael