pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: Stefan Keller <sfkeller@gmail.com>
Cc: pgsql-general List <pgsql-general@postgresql.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues
Date: Mon, 9 Jan 2012 15:52:23 +0100
Message-ID: <CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.com> (raw)
In-Reply-To: <f03d2d0175ac9ef189bc08893eca7b96@mail.softperience.eu>
References: <CAFcOn2-bkFBdBUTa-dRudE0gC6bJbPNVDEV-+LOs40PaDHUhUQ@mail.gmail.com>
	<CAFcOn2__pgmqm_bzAs-w0zqWJ+W61HFRgPaEnEOtkXF_KJRvCQ@mail.gmail.com>
	<54a09cf5e11d80002f3d412c0be94d59@mail.softperience.eu>
	<CAFcOn2_9gmpf+MW+=3STEOiTs00brTkwBRsLKYVJYbFB0yZCyw@mail.gmail.com>
	<e07e62a99dafbbacda5acfa3456b5276@mail.softperience.eu>
	<CAFcOn28VUksrQ2Y3jDu+=CQFzvjtsV2B2RxBEBHskg_OyN5vKg@mail.gmail.com>
	<f03d2d0175ac9ef189bc08893eca7b96@mail.softperience.eu>

On 9 January 2012 14:55, Radosław Smogura <rsmogura@softperience.eu> wrote:
> So responsible for this is database, but database doesn't have
> "real" BLOBs, this what is made in PG JDBC driver is just "not perfect" way
> to add this functionality to PostgreSQL.

I think you should elaborate on what you mean when you say that
Postgres doesn't have "real" BLOBs.

This discussion did make me wonder about something in Postgres'
LOB-support though. As explained earlier, the current implementation
allows for dedubbing LOB's, so that it's not necessary to store the
same large(!) object multiple times. That is also what's causing this
issue with the JDBC driver, or perhaps Hybernate in particular.

However, shouldn't it be up to the application designer to dedup large
objects or not?

The current implementation is probably rather convenient for projects
where duplicate large objects are common, but - as it turns out - it
can be quite inconvenient when that's opposite to expectations.

ISTMT this behaviour should at least be optional. Of course that
raises the question what should happen with an existing set of LOB's
when that setting gets changed.
-- 
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.



view thread (25+ messages)  latest in thread

Message-ID: <CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.com>
Permalink:  ../CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.com/
Also on:    postgresql.org/message-id/CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.com

 · 

reply

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: haramrae@gmail.com, rsmogura@softperience.eu, sfkeller@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues
  In-Reply-To: <CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.com>
  References: <CAFcOn2-bkFBdBUTa-dRudE0gC6bJbPNVDEV-+LOs40PaDHUhUQ@mail.gmail.com> <CAFcOn2__pgmqm_bzAs-w0zqWJ+W61HFRgPaEnEOtkXF_KJRvCQ@mail.gmail.com> <54a09cf5e11d80002f3d412c0be94d59@mail.softperience.eu> <CAFcOn2_9gmpf+MW+=3STEOiTs00brTkwBRsLKYVJYbFB0yZCyw@mail.gmail.com> <e07e62a99dafbbacda5acfa3456b5276@mail.softperience.eu> <CAFcOn28VUksrQ2Y3jDu+=CQFzvjtsV2B2RxBEBHskg_OyN5vKg@mail.gmail.com> <f03d2d0175ac9ef189bc08893eca7b96@mail.softperience.eu> <CAF-3MvO2eR12539YFJP+9BXEEkgfix3rH1QrnxaaOC6iaw952Q@mail.gmail.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