X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 21154D1CCB0 for ; Tue, 20 Apr 2004 20:48:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 62142-05 for ; Tue, 20 Apr 2004 20:48:45 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id E9D50D1B470 for ; Tue, 20 Apr 2004 20:48:42 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BG4ym-0002tc-00; Wed, 21 Apr 2004 11:48:40 +1200 Message-ID: <4085B6D5.7080500@opencloud.com> Date: Wed, 21 Apr 2004 11:48:37 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tao Yang Cc: pgsql-jdbc@postgresql.org Subject: Re: Out of memory exception References: <40805043.6020502@cloverworxs.com> In-Reply-To: <40805043.6020502@cloverworxs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200404/206 X-Sequence-Number: 9935 Tao Yang wrote: > Is there any possibility the postgresql jdbc driver does not handle > large object very well, for example, use stream for loading that big file? > > Do you have any clue why we have those problems? In brief: yes, the driver doesn't handle large binary columns very well. You will need 6-7 times the binary data's size in temporary heap space. For details, take a look at: http://archives.postgresql.org/pgsql-jdbc/2004-04/msg00186.php http://archives.postgresql.org/pgsql-jdbc/2004-04/msg00128.php -O