From: Oliver Jowett <oliver@opencloud.com>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ResultSet.getClob() causing problems when used with JPA's @Lob
Date: Wed, 09 Feb 2011 01:30:17 +1300
Message-ID: <4D513759.8010506@opencloud.com> (raw)
In-Reply-To: <23828143.70.1297164859086.JavaMail.on@prod2>
References: <23828143.70.1297164859086.JavaMail.on@prod2>
Andreas Joseph Krogh wrote:
> I hear over and over that PGs JDBC-driver wants to map CLOBs to OIDs but there really doesn't seem to be any good reasons for it
It's mostly there for historical reasons - IIRC it dates back to the
early 7.x days when you *had* to use LOs to store large data, because
there was no such thing as the "text" or "bytea" type. There's really
not much reason to use it in new code these days, as I said. But there's
also not much reason to arbitrarily break compatibility with existing
code that assumes the current behavior, just for the sake of your
particular application.
I think that your efforts here might be more productively directed
towards improving the Hibernate postgresql implementation so that it
avoids using get/setClob() entirely.
Oliver
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: oliver@opencloud.com, andreak@officenet.no
Subject: Re: ResultSet.getClob() causing problems when used with JPA's @Lob
In-Reply-To: <4D513759.8010506@opencloud.com>
References: <23828143.70.1297164859086.JavaMail.on@prod2> <4D513759.8010506@opencloud.com>
* 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