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 55619529EA for ; Tue, 28 Jun 2005 10:39:02 -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 32796-03 for ; Tue, 28 Jun 2005 13:38:56 +0000 (GMT) Received: from weber.conzentrate.int (0x55513365.adsl.cybercity.dk [85.81.51.101]) by svr1.postgresql.org (Postfix) with ESMTP id 544575280A for ; Tue, 28 Jun 2005 10:38:55 -0300 (ADT) Received: from [10.10.100.110] (helo=[10.10.100.110]) by weber.conzentrate.int with esmtp (Exim 4.43) id 1DnGIb-0003Ga-Ds; Tue, 28 Jun 2005 15:38:49 +0200 Message-ID: <42C152EF.305@conzentrate.com> Date: Tue, 28 Jun 2005 15:38:55 +0200 From: Jesper Thorhauge User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Subject: Re: getBinaryStream and OutOfMemoryException References: <42C10723.5010702@conzentrate.com> <42C14B45.8000500@opencloud.com> <42C14CEA.4020704@conzentrate.com> <42C150C9.70101@opencloud.com> In-Reply-To: <42C150C9.70101@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.193 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/142 X-Sequence-Number: 13104 Okay, thats seems like a lot!! What are the priorities about getting this modification into the driver? I have seen some other posts regarding this binaryStream / memory problem, so it seems that i'm not the only one :-) Oliver Jowett wrote: >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 > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > >