From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Migowski <dmigowski@ikoffice.de>
Cc: pgsql-jdbc@postgresql.org
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Gregory Stark <stark@enterprisedb.com>
Subject: Re: TypeInfoCache
Date: Thu, 20 Dec 2007 10:38:36 -0500
Message-ID: <11679.1198165116@sss.pgh.pa.us> (raw)
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>
Daniel Migowski <dmigowski@ikoffice.de> 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
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: tgl@sss.pgh.pa.us, dmigowski@ikoffice.de, oliver@opencloud.com, stark@enterprisedb.com
Subject: Re: TypeInfoCache
In-Reply-To: <11679.1198165116@sss.pgh.pa.us>
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> <11679.1198165116@sss.pgh.pa.us>
* 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