Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 350BC2E030F for ; Thu, 20 Dec 2007 08:35:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 93231-05 for ; Thu, 20 Dec 2007 08:35:26 -0400 (AST) Received: from ikoffice.de (ikoffice.de [81.169.166.92]) by postgresql.org (Postfix) with ESMTP id AE5742E00C9 for ; Thu, 20 Dec 2007 08:35:26 -0400 (AST) Received: from p5481be37.dip.t-dialin.net ([84.129.190.55] helo=[192.168.1.16]) by ikoffice.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1J5KcN-0003L3-Og; Thu, 20 Dec 2007 13:35:16 +0100 Message-ID: <476A6281.6090008@ikoffice.de> Date: Thu, 20 Dec 2007 13:39:29 +0100 From: Daniel Migowski User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Kris Jurka CC: Oliver Jowett , Tom Lane , Gregory Stark , pgsql-jdbc@postgresql.org Subject: Re: TypeInfoCache References: <47692DEB.9070307@ikoffice.de> <877ijan2cp.fsf@oxford.xeocode.com> <47693B10.3040804@ikoffice.de> <873atymzpu.fsf@oxford.xeocode.com> <4769604A.9050006@ikoffice.de> <476989C7.8020307@opencloud.com> <1811.1198113944@sss.pgh.pa.us> <476A4094.6070601@ikoffice.de> <476A475E.2020108@opencloud.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020008030303090700060705" X-Spam-Bar: - X-Spam-Score-Int: -17 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/167 X-Sequence-Number: 18022 This is a multi-part message in MIME format. --------------020008030303090700060705 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Kris Jurka schrieb: > On Thu, 20 Dec 2007, Oliver Jowett wrote: >> My main concern is that 'text' is a very common type to use in >> PostgreSQL based designs, and that JDBC applications are more likely >> to understand how to interpret a field that claims to be VARCHAR than >> one that is LONGVARCHAR, given that LONGVARCHAR is a relatively >> strange type and at best poorly defined. > This is my concern as well, which is why I suggested that changing the > precision value might be a better solution. Daniel, any opinion on > that alternative? Btw., you say that "JDBC applications" are more likely to understand how to interpret a VARCHAR field, than an LONGVARCHAR field. Which? I don't know any.And currently a JDBC application (Chrystal Reports) broke, because we did't send a LONGVARCHAR! Every JDBC application should be able to handle both, since JDBC defines both. And, most important, both types can, according to JDBC spec, treated equally (same access functions,etc.). So we shouldn't create a broken driver for applications, that _might_ be broken. And if they are, a parameter option should be a fair deal to give to the driver, to let bad behaving applications work. We don't have to stick to bugs just for backwards compatibility, don't we? We are not Microsoft, i think. With best regards, Daniel Migowski -- |¯¯|¯¯| *IKOffice GmbH Daniel Migowski* | | |/| Mail: dmigowski@ikoffice.de | | // | Nordstr. 10 Tel.: +49 (441) 21 98 89 52 | | \\ | 26135 Oldenburg Fax.: +49 (441) 21 98 89 55 |__|__|\| http://www.ikoffice.de Mob.: +49 (176) 22 31 20 76 Geschäftsführer: Ingo Kuhlmann, Daniel Migowski Amtsgericht Oldenburg, HRB 201467 Steuernummer: 64/211/01864 --------------020008030303090700060705 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Kris Jurka schrieb:
On Thu, 20 Dec 2007, Oliver Jowett wrote:
My main concern is that 'text' is a very common type to use in PostgreSQL based designs, and that JDBC applications are more likely to understand how to interpret a field that claims to be VARCHAR than one that is LONGVARCHAR, given that LONGVARCHAR is a relatively strange type and at best poorly defined.
This is my concern as well, which is why I suggested that changing the precision value might be a better solution.  Daniel, any opinion on that alternative?
Btw., you say that "JDBC applications" are more likely to understand how to interpret a VARCHAR field, than an LONGVARCHAR field. Which? I don't know any.And currently a JDBC application (Chrystal Reports) broke, because we did't send a LONGVARCHAR! Every JDBC application should be able to handle both, since JDBC defines both. And, most important, both types can, according to JDBC spec, treated equally (same access functions,etc.). So we shouldn't create a broken driver for applications, that _might_ be broken. And if they are, a parameter option should be a fair deal to give to the driver, to let bad behaving applications work. We don't have to stick to bugs just for backwards compatibility, don't we? We are not Microsoft, i think.

With best regards,
Daniel Migowski


--
 |¯¯|¯¯|    IKOffice GmbH             Daniel Migowski
 |  |  |/|                            Mail: dmigowski@ikoffice.de
 |  | // |  Nordstr. 10               Tel.: +49 (441) 21 98 89 52
 |  | \\ |  26135 Oldenburg           Fax.: +49 (441) 21 98 89 55
 |__|__|\|  http://www.ikoffice.de    Mob.: +49 (176) 22 31 20 76
 
            Geschäftsführer: Ingo Kuhlmann, Daniel Migowski
            Amtsgericht Oldenburg, HRB 201467
            Steuernummer: 64/211/01864
--------------020008030303090700060705--