X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 36EFA3A4BAE for ; Fri, 7 Jan 2005 03:03:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34596-04 for ; Fri, 7 Jan 2005 03:02:53 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id 351033A4B02 for ; Fri, 7 Jan 2005 03:02:48 +0000 (GMT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CmkOm-0000hc-00 for ; Fri, 07 Jan 2005 04:02:48 +0100 Received: from p5484bde7.dip.t-dialin.net ([84.132.189.231]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2005 04:02:48 +0100 Received: from skoehler by p5484bde7.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2005 04:02:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: =?ISO-8859-15?Q?Sven_K=F6hler?= Subject: Re: BLOBs etc Date: Fri, 07 Jan 2005 04:04:38 +0100 Lines: 21 Message-ID: <41DDFC46.1080807@upb.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org Cc: pgsql-jdbc@postgresql.org X-Gmane-NNTP-Posting-Host: p5484bde7.dip.t-dialin.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927 X-Accept-Language: de, en In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/33 X-Sequence-Number: 11913 >>on the jdbc-webpages it says, that the JDBC team may decide to change >>getBLOBG/setBLOB to support bytea only, and that one should use the >>PostGreSQL specific LargeObject extension to acces them. > > I'm not sure where it says that, but it is either out of date or just > plain bad advice. If you could point out where it says that I'd > appreciate it. I would stick withe the standard Blob interface for now. http://www.postgresql.org/docs/7.4/static/jdbc-binary-data.html There is says: Note: In a future release of the JDBC driver, the getBLOB() and setBLOB() methods may no longer interact with Large Objects and will instead work on the data type bytea. So it is recommended that you use the LargeObject API if you intend to use Large Objects. BTW: why don't getInputStream/getBLOB/... work for _both_, bytea and oid? Shouldn't the JDBC driver be abled to determine the used datatype and act accordingly? I'm sure you had you reasons. I'd just like to know them.