Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BC02D2E0362 for ; Thu, 20 Dec 2007 11:38:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74594-06-5 for ; Thu, 20 Dec 2007 11:38:53 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id CAAE52E00CC for ; Thu, 20 Dec 2007 11:38:49 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lBKFcaSQ011680; Thu, 20 Dec 2007 10:38:36 -0500 (EST) To: Daniel Migowski cc: pgsql-jdbc@postgresql.org, Oliver Jowett , Gregory Stark Subject: Re: TypeInfoCache In-reply-to: <476A4AB7.90509@ikoffice.de> 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> <476A4AB7.90509@ikoffice.de> Comments: In-reply-to Daniel Migowski message dated "Thu, 20 Dec 2007 11:57:59 +0100" Date: Thu, 20 Dec 2007 10:38:36 -0500 Message-ID: <11679.1198165116@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/168 X-Sequence-Number: 18023 Daniel Migowski writes: > * At first, VARCHAR as defined by SQL and as used by all other JDBC > drivers always has a upper limit. LONGVARCHAR is for very large > quantities of text, so IMHO returning a "text" or an unrestricted > "varchar" as VARCHAR just breaks the specs and the expectations. Unfortunately, LONGVARCHAR is no more standard than TEXT, at least as far as the non-JDBC world is concerned. I concur with the complaints that LONGVARCHAR is likely to prompt applications to do things that might be enormously inefficient overkill for typical-size fields. If the driver had a way to know which fields are likely to be wide, it'd be OK to translate them to LONGVARCHAR, but I'm dubious about doing that for text fields in general. regards, tom lane