pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thor Michael Støre <thormichael@gmail.com>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: Lukas Eder <lukas.eder@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: UDT arrays
Date: Sun, 13 Feb 2011 19:03:29 +0100
Message-ID: <1297620209.4457.3.camel@localhost> (raw)
In-Reply-To: <201102101126.00740.rsmogura@softperience.eu>
References: <68ad45f0-460b-4483-a4df-13b69777707f@s18g2000vbe.googlegroups.com>
	<201102091029.28960.rsmogura@softperience.eu>
	<AANLkTinQrs7UiJSUEL2k+LMfVkmcEYSM0Bro5HQoQRvN@mail.gmail.com>
	<201102101126.00740.rsmogura@softperience.eu>

Excuse me for butting in, but am I right in understanding that you're
only talking about the Softperience JDBC driver, not the official one?

http://softperience.eu/pages/cmn/ngpgjdbc.xhtml

Like Lukas I'm also writing a database tool (though mine works on rather
different principles), and I'm also extremely interested in support for
UDT's and arrays of UDT's.

 - thormick

On Thu, 2011-02-10 at 11:26 +0100, Radosław Smogura wrote:
> I plan to sleep PGObjects, and wake for backward compatibility (maybe as 
> deprectaed or some parts of methodes there - there are static methods, which 
> causes problems with JDBC4 Exception model and some per connection specific 
> functionaly). Arrays parsing is different in text and in binary mode, and 
> binary mode requires more carefull casting. Actually current flow should allow 
> to read any nested type, which is supported by ResultSet, form parent object 
> (I putted only exception for getting result set with multidimensional arrays).
> 
> I plan to give support for specific PG objects like box, but make them more 
> portable, without internal connection with JDBC dirver logic (you should be 
> able to serialize and deserialzie those objects on clients without 
> postgresql.jar). I plan as well to give "plugable" support for custom PG 
> objects, which can't be processed as UDT (above box is example). I think about 
> mapping some PG objects to standard Java classes e.g. PG's box -> java.awt.Box 
> (but this is far future). Above must be done in descriptive way, to be usable 
> with DataSource and app servers, eg.
> 
> @Resource
> private DataSource myPgDataSourceWithMyCustomObjects
> 
> Both of those should be designed in fast way, low memory consuption and in way 
> preventing writing thousend lines of code if binary format for given object 
> will be different per DB level or per new protocol (see e.g. problems with 
> bytea encoding in 9.x releases).





view thread (10+ messages)  latest in thread

Message-ID: <1297620209.4457.3.camel@localhost>
Permalink:  ../1297620209.4457.3.camel@localhost/
Also on:    postgresql.org/message-id/1297620209.4457.3.camel@localhost

 · 

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: thormichael@gmail.com, rsmogura@softperience.eu, lukas.eder@gmail.com
  Subject: Re: UDT arrays
  In-Reply-To: <1297620209.4457.3.camel@localhost>
  References: <68ad45f0-460b-4483-a4df-13b69777707f@s18g2000vbe.googlegroups.com> <201102091029.28960.rsmogura@softperience.eu> <AANLkTinQrs7UiJSUEL2k+LMfVkmcEYSM0Bro5HQoQRvN@mail.gmail.com> <201102101126.00740.rsmogura@softperience.eu> <1297620209.4457.3.camel@localhost>

* 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