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 73D0D52952 for ; Tue, 28 Jun 2005 10:29:45 -0300 (ADT) 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 30601-03 for ; Tue, 28 Jun 2005 13:29:44 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 11E2852943 for ; Tue, 28 Jun 2005 10:29:41 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DnG9p-0005Uj-Oe; Wed, 29 Jun 2005 01:29:45 +1200 Message-ID: <42C150C9.70101@opencloud.com> Date: Wed, 29 Jun 2005 01:29:45 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jesper Thorhauge Cc: pgsql-jdbc@postgresql.org Subject: Re: getBinaryStream and OutOfMemoryException References: <42C10723.5010702@conzentrate.com> <42C14B45.8000500@opencloud.com> <42C14CEA.4020704@conzentrate.com> In-Reply-To: <42C14CEA.4020704@conzentrate.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/141 X-Sequence-Number: 13103 Jesper Thorhauge wrote: > Okay, thanks alot for the quick answer! I was wondering, do you know how > much more efficient it could be done using the binary format you are > mentioning? I'm especially interested in decreasing the amount of memory > used to get large bytea values... Um, rough estimate would be about a factor of 5 (assume text representation of bytea averages about ~2.5 characters per raw byte, and characters are 16 bits on the Java side) -O