Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id AFE071337BBB for ; Tue, 15 Feb 2011 11:50:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 18214-06 for ; Tue, 15 Feb 2011 15:50:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id A1FC91337B64 for ; Tue, 15 Feb 2011 11:50:30 -0400 (AST) Received: from radek.localnet (87-204-194-135.dg-net.pl [87.204.194.135]) by mail.softperience.eu (Postfix) with ESMTPA id C86E0C000B1; Tue, 15 Feb 2011 16:50:35 +0100 (CET) From: =?utf-8?q?Rados=C5=82aw_Smogura?= To: Lukas Eder Subject: Re: UDT arrays Date: Tue, 15 Feb 2011 16:50:38 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.4.5; x86_64; ; ) Cc: Thor Michael =?utf-8?q?St=C3=B8re?= , pgsql-jdbc@postgresql.org References: <68ad45f0-460b-4483-a4df-13b69777707f@s18g2000vbe.googlegroups.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201102151650.39155.rsmogura@softperience.eu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/84 X-Sequence-Number: 21482 Sorry for late answer. I rolled my own driver, because of=20 1) I added support for some functionality I was required for production sys= tem=20 sefety (e.g. statement timeout), and some for performance (binary mode=20 support), many of those was inspirated by post in this forum (better memory= =20 usage for large objectes, UDT, etc...), I've done some bug fix of those wha= t I=20 saw, just, in code, without any direct bug notify. Actually I was affected = by=20 one of those bugs, and I didn't realasied this, I rewritten many parts of a= pp,=20 because I thought it is my problem. As well many JDBC4 functionality is=20 missing, in few places implementation ended at JDBC2/3 and from other hand,= =20 JDBC 4.1 will income. 2) I gave sources few monthes ago, but those were forgotten. As well I want to add profesional support (bugzilla, etc)... Thanks for notify about link. It is only "framework" of support system, and= =20 actually all links there points to "ddd"- 404. I know it's realy=20 unprofessional..., but I was in need to "correct" glassfish too. Check in=20 month or two. Everything should work prefectly. =46rom other side future of this driver isn't for me clear, because I don't= =20 exactly know in which direction PG will come. I choosed PG as free DB from= =20 performance reasons when it was 7.x, It was faster then MySQL and had low=20 resource needs. About Google... better is Kenai, Sourceforge, etc - G has quite interesting= =20 licenses, especially when you read license for search engines, gmail, chrom= e=20 and connect them together. Lukas Eder Monday 14 February 2011 13:20:56 > Aaaah, thanks for asking that, Thormick. Good to know. I didn't realise > Radek was talking about any other JDBC implementation. I'll double check = if > that Softperience driver will fix my problem. But then again, Radek, you > should have said so. I doubt that the pgsql-jdbc@postgresql.org user group > should be about *YOUR *JDBC driver. I suggest you roll your own free user > group at google groups or elsewhere... Then again, may I ask you, why do > you roll your own driver? Why don't you contribute to the official one? >=20 > While I'm writing you, please have a look at your documentations link. It > seems to be broken: > http://softperience.eu/pages/cmn/ddd >=20 > I get a 404... >=20 > Cheers > Lukas >=20 > 2011/2/14 rsmogura >=20 > > I think it will be so, I want to add good support for this driver. You > > should not afraid about this, many "not offical" drivers are better then > > official releases, e.g. BEA had own driver for Oracle DB, as well I > > worked with one driver,I don't remember vendor, to IBM DB2 better then > > official. > >=20 > > I currently write small user registration app, I have virtual mailboxes > > to hide true user e-mails in bugzilla. I looking for good "forum". > >=20 > > Kind regards, > > Radek > >=20 > > On Sun, 13 Feb 2011 19:03:29 +0100, Thor Michael St=C3=B8re wrote: > >> 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? > >>=20 > >> http://softperience.eu/pages/cmn/ngpgjdbc.xhtml > >>=20 > >> Like Lukas I'm also writing a database tool (though mine works on rath= er > >> different principles), and I'm also extremely interested in support for > >> UDT's and arrays of UDT's. > >>=20 > >> - thormick > >>=20 > >> On Thu, 2011-02-10 at 11:26 +0100, Rados=C5=82aw 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). > >>>=20 > >>> 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. > >>>=20 > >>> @Resource > >>> private DataSource myPgDataSourceWithMyCustomObjects > >>>=20 > >>> Both of those should be designed in fast way, low memory consuption a= nd > >>> 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).