From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues
Date: Sun, 08 Jan 2012 19:50:12 +0100
Message-ID: <jecofg$jia$1@dough.gmane.org> (raw)
In-Reply-To: <CAFcOn2_W6JYoFVWcGOSAKfhk1Z3TeVebwf0aocTaWE7Rog+sJA@mail.gmail.com>
References: <CAFcOn2-bkFBdBUTa-dRudE0gC6bJbPNVDEV-+LOs40PaDHUhUQ@mail.gmail.com>
<jeckhp$q0d$1@dough.gmane.org>
<CAFcOn2_W6JYoFVWcGOSAKfhk1Z3TeVebwf0aocTaWE7Rog+sJA@mail.gmail.com>
Stefan Keller wrote on 08.01.2012 19:13:
>> I think you are better off using bytea unless you need to access only parts
>> of the blob regularly.
>
> That's a valid tip. But it's to the current JDBC implementation to
> take action because it currently leads to disk space leakage when
> using JDBC and JPA/Hibernate.
But only if you use large objects.
From my perspective bytea is the (only) data type that matches the JDBC BLOB type.
And none of the problems you have occur when using bytea.
There is no match for PG's large objects in the JDBC API so I don't see your claim that it's a fault of the driver.
What's the reason for you to stick with LargeObjects?
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: spam_eater@gmx.net, pgsql-general@postgresql.org
Subject: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues
In-Reply-To: <jecofg$jia$1@dough.gmane.org>
References: <CAFcOn2-bkFBdBUTa-dRudE0gC6bJbPNVDEV-+LOs40PaDHUhUQ@mail.gmail.com> <jeckhp$q0d$1@dough.gmane.org> <CAFcOn2_W6JYoFVWcGOSAKfhk1Z3TeVebwf0aocTaWE7Rog+sJA@mail.gmail.com> <jecofg$jia$1@dough.gmane.org>
* 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