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 4DBCA3A3F96 for ; Tue, 2 Nov 2004 20:10:11 +0000 (GMT) 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 76395-05 for ; Tue, 2 Nov 2004 20:10:08 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 134253A3C7C for ; Tue, 2 Nov 2004 20:10:03 +0000 (GMT) Received: (qmail 1149 invoked by uid 1112); 2 Nov 2004 20:09:38 -0000 Date: Tue, 2 Nov 2004 15:09:38 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Vadim Nasardinov Cc: pgsql-jdbc@postgresql.org Subject: Re: 1300 to 3100 lines of code for XA support (was: Re: plans In-Reply-To: <200411021447.54010@vadim.nasardinov> Message-ID: References: <200410271617.28742@vadim.nasardinov> <4180062A.1000800@opencloud.com> <200411021447.54010@vadim.nasardinov> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/31 X-Sequence-Number: 11453 On Tue, 2 Nov 2004, Vadim Nasardinov wrote: > > With current proposals it doesn't seem like much work on the driver > > side. > > To get a better feel for what "not much work" actually looks like, I > googled for existing implementations. > You might be interested to know that pg used to have a fake XA implementation in the driver as well. http://gborg.postgresql.org/project/pgjdbc/cvs/cvs.php/pgjdbc/org/postgresql/xa?sa=1 I don't think a straight lines of code count can really indicate the difficulty of implementation. If the backend API matches up with the XA API then you can easily write even thousands of lines of boilerplate code. If the APIs don't match then you may have to do some complicated mapping. All of the real work for XA is on the backend side. Kris Jurka