pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Vadim Nasardinov <vadimn@redhat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: 1300 to 3100 lines of code for XA support (was: Re: plans
Date: Tue, 2 Nov 2004 15:09:38 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0411021453540.1202@leary.csoft.net> (raw)
In-Reply-To: <200411021447.54010@vadim.nasardinov>
References: <200410271617.28742@vadim.nasardinov>
	<4180062A.1000800@opencloud.com>
	<200411021447.54010@vadim.nasardinov>



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




view thread (8+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0411021453540.1202@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0411021453540.1202@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0411021453540.1202@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, vadimn@redhat.com
  Subject: Re: 1300 to 3100 lines of code for XA support (was: Re: plans
  In-Reply-To: <Pine.BSO.4.56.0411021453540.1202@leary.csoft.net>
  References: <200410271617.28742@vadim.nasardinov> <4180062A.1000800@opencloud.com> <200411021447.54010@vadim.nasardinov> <Pine.BSO.4.56.0411021453540.1202@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox