Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 11C7B2E2D6B for ; Thu, 20 Dec 2007 06:48:35 -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 49881-08 for ; Thu, 20 Dec 2007 06:48:31 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id C78282E02C7 for ; Thu, 20 Dec 2007 06:48:31 -0400 (AST) Received: from 222-154-181-228.jetstream.xtra.co.nz ([222.154.181.228] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J5Ix0-0003P7-Qf; Thu, 20 Dec 2007 23:48:27 +1300 Message-ID: <476A487F.9070006@opencloud.com> Date: Thu, 20 Dec 2007 23:48:31 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Daniel Migowski CC: 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: <476A475E.2020108@opencloud.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/161 X-Sequence-Number: 18016 Oliver Jowett wrote: > Daniel Migowski wrote: > >> Please give me any good reasons not to apply my patch, with would >> further improve standards conformance. > > 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. Also worth noting that 'text' is commonly used even for very short strings. Do you really want to hint to JDBC clients that they should be using the streaming interface and expect to deal with very long strings in that common case? I suspect (with no hard data to back it up, admittedly!) that 'text' fields in general use are more commonly under 100 characters than over a megabyte. -O