Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2F3B29FB53C for ; Tue, 17 Apr 2007 08:15:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15935-04 for ; Tue, 17 Apr 2007 08:15:36 -0300 (ADT) 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.170]) by postgresql.org (Postfix) with ESMTP id 986D09FB4B4 for ; Tue, 17 Apr 2007 08:15:36 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so109233ugf for ; Tue, 17 Apr 2007 04:15:35 -0700 (PDT) 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:subject:content-type:sender; b=g7BWJnZMnItiTDhOXy7WXlhFnBInoTpH9uOro24YihKlv9LhbM5ZLV+Kc2285+UMjdNhZ0k8tUUHxvcsxlWa9BHjUVpYZcwF8X7RhtML4aw/23iUWeS7lcJXL3Jwih43yvFYKqZYWIwH2whoPTjZBcY7qHMyUx4g7QxH31lTqrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:sender; b=DLo3LsUfI8jFhua6N06rIf5/ogpQY5sJWSMHLQMg6eTg0oY2NFQVaNfCf+w4KhShlBqYVRFALCJfLQI4L4beISh/NPHCnjN/mYOqbz0nz14GPI9Dg6vd2fkBc+HBN7l5q6McDxuH6ldn8h2t5Qp7JC1Ut1hLNlSOLde3d0OrR+c= Received: by 10.67.99.1 with SMTP id b1mr445760ugm.1176808535014; Tue, 17 Apr 2007 04:15:35 -0700 (PDT) Received: from ?172.24.32.131? ( [62.232.55.118]) by mx.google.com with ESMTP id 24sm886575ugf.2007.04.17.04.15.31; Tue, 17 Apr 2007 04:15:33 -0700 (PDT) Message-ID: <4624AC46.3030100@enterprisedb.com> Date: Tue, 17 Apr 2007 12:15:18 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: FAQ update about transaction interleaving Content-Type: multipart/mixed; boundary="------------060701010503080702080901" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/59 X-Sequence-Number: 16908 This is a multi-part message in MIME format. --------------060701010503080702080901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I posted this FAQ patch already in November, but got no reaction... Could we please have the FAQ updated to give more information on the missing support for transaction interleaving in the XA driver? The current wording leaves the reader wondering what the heck it is and why should they care. People ask about it on the list every now and then. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com --------------060701010503080702080901 Content-Type: text/plain; name="xa-faq-update.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xa-faq-update.diff" ? xa-faq-update.diff Index: src/documentation/content/xdocs/documentation/faq.xml =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/www/src/documentation/content/xdocs/documentation/faq.xml,v retrieving revision 1.3 diff -c -r1.3 faq.xml *** src/documentation/content/xdocs/documentation/faq.xml 26 Sep 2006 05:14:10 -0000 1.3 --- src/documentation/content/xdocs/documentation/faq.xml 10 Nov 2006 16:23:38 -0000 *************** *** 10,18 **** Does the driver have XA support?

! Yes, starting with the 8.1dev-403 driver XADataSource support ! is available. It is not complete in that it does not support ! transaction interleaving.

--- 10,49 ---- Does the driver have XA support?

! Yes, starting with the 8.1dev-403 driver. However, transaction ! interleaving is not supported. !

!
! What is "transaction interleaving"? ! !

! Transaction interleaving means that one database connection can be ! used for multiple transactions at the same time, switching between ! the transactions. !

!

! Transaction interleaving is mostly useless, but it's a required part ! of the JTA specification. Some application servers use it to allow a ! bit more concurrency without allocating a bigger jdbc connection ! pool. !

!

! Few JDBC drivers support transaction interleaving properly. Some ! fake it by issuing early prepare commands, risking transaction ! integrity, some give strange error messages, some fail in other, ! subtle ways. The PostgreSQL JDBC driver does it's best to detect ! interleaving and throws a proper error message when it can't do ! what's requested. !

!

! Because of the lack of driver support, all of the popular application ! servers provide options to work around it, or don't use it at all. ! Therefore, lack of transaction interleaving shouldn't affect your ! application or data integrity. !

!

! See the JTA specification, section 3.4.4, or search the pgsql-jdbc ! mailing list archives for more information.

--------------060701010503080702080901--