pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
plans and estimates for supporting JDBC 3.0
2+ messages / 2 participants
[nested] [flat]

* plans and estimates for supporting JDBC 3.0
@ 2004-10-27 20:17 Vadim Nasardinov <vadimn@redhat.com>
  2004-10-27 20:33 ` Re: plans and estimates for supporting JDBC 3.0 Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Vadim Nasardinov @ 2004-10-27 20:17 UTC (permalink / raw)
  To: pgsql-jdbc

I'd like to ask for help in figuring out where the current
implementation stands with respect to JDBC 3.0 compliance, with a
particular emphasis on support for distributed transactions.

The current source tree contains about 35,200 lines of .java code [1],
of which 7,800 lines are in org/postgresql/test/.  The latter number
breaks down as follows:

   7,000 lines in org/postgresql/test/jdbc2/
     260 lines in org/postgresql/test/jdbc3/

There seems to be a fair amount of code that has already been written to
support JDBC 3.0.

As far as I can tell, XADataSource, XAConnection, and XAResource have
not been implemented yet.

  | $ find org/ -name \*.java | \
  |  xargs grep -E "XA(DataSource|Connection|Resource)" | wc -l
  |       0


Is there a plan for doing this and an estimate of the required effort?
(As far as I understand, support for the XA stuff needs to be added on
the backend side.  Ignoring that for a second, are there any estimates
for the amount of work required on the driver side?)


Thanks,
Vadim


Footnotes
 1. http://people.redhat.com/~vadimn/scratch/pgsql-jdbc/file-stats.txt




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: plans and estimates for supporting JDBC 3.0
  2004-10-27 20:17 plans and estimates for supporting JDBC 3.0 Vadim Nasardinov <vadimn@redhat.com>
@ 2004-10-27 20:33 ` Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2004-10-27 20:33 UTC (permalink / raw)
  To: Vadim Nasardinov <vadimn@redhat.com>; +Cc: pgsql-jdbc

Vadim Nasardinov wrote:

> As far as I can tell, XADataSource, XAConnection, and XAResource have
> not been implemented yet.
> 
>   | $ find org/ -name \*.java | \
>   |  xargs grep -E "XA(DataSource|Connection|Resource)" | wc -l
>   |       0

Yes; there's no point in implementing XA* until we have a 2PC 
implementation on the server side to back it up.

As I understand it, you do not need an XA implementation to be JDBC3 
compliant anyway.

> Is there a plan for doing this and an estimate of the required effort?
> (As far as I understand, support for the XA stuff needs to be added on
> the backend side.  Ignoring that for a second, are there any estimates
> for the amount of work required on the driver side?)

It depends on what the server interface to 2PC ends up looking like. 
With current proposals it doesn't seem like much work on the driver side.

See http://www.hut.fi/~hlinnaka/pgsql/ for some 2PC (backend & JDBC 
driver) work.

-O



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-10-27 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-27 20:17 plans and estimates for supporting JDBC 3.0 Vadim Nasardinov <vadimn@redhat.com>
2004-10-27 20:33 ` Oliver Jowett <oliver@opencloud.com>

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