Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 8BFABAF82E7; Mon, 9 Jan 2012 10:52:41 -0400 (AST) Received: from mail-ww0-f50.google.com ([74.125.82.50]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RkGaS-0007xV-9z; Mon, 09 Jan 2012 14:52:41 +0000 Received: by wgbdr11 with SMTP id dr11so1837954wgb.19 for ; Mon, 09 Jan 2012 06:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=tWQyZ0E6TxCpKF9xjG2YtiaIkgjjx2b2OAIAO0uAs2Q=; b=wRMPFHLtz12m7OIGERaFMps68ikxs8q7UqgZDZwmGObFgfofEYPs9+KJva92dbyaUt z0Hu8MpUsc/MN/ufXx19Ss3qyNIDme3tlZbq/Sul+nHj5Fn98An/4HuPzFE2gJGMHSks V55xpdZcCtZltZ0b/RGhq3VUNcjpm40VUH8Ns= MIME-Version: 1.0 Received: by 10.180.88.10 with SMTP id bc10mr28240145wib.13.1326120743238; Mon, 09 Jan 2012 06:52:23 -0800 (PST) Received: by 10.216.65.142 with HTTP; Mon, 9 Jan 2012 06:52:23 -0800 (PST) In-Reply-To: References: <54a09cf5e11d80002f3d412c0be94d59@mail.softperience.eu> Date: Mon, 9 Jan 2012 15:52:23 +0100 Message-ID: Subject: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues From: Alban Hertroys To: =?UTF-8?Q?Rados=C5=82aw_Smogura?= Cc: Stefan Keller , pgsql-general List , pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201201/187 X-Sequence-Number: 183839 On 9 January 2012 14:55, Rados=C5=82aw Smogura w= rote: > 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" w= ay > 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. --=20 If you can't see the forest for the trees, Cut the trees and you'll see there is no forest.