Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tlo3J-00053x-6D for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Dec 2012 21:53:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tlo3I-0007kW-9z for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Dec 2012 21:53:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tlo3H-0007kR-Nv for pgsql-bugs@postgresql.org; Thu, 20 Dec 2012 21:53:15 +0000 Received: from [2a02:16a8:dc41::11] (helo=cronos.madness.at) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tlo3G-0004tg-Jx for pgsql-bugs@postgresql.org; Thu, 20 Dec 2012 21:53:15 +0000 Received: from mastermind.kaltenbrunner.cc ([2001:470:7a2d::22]) by cronos.madness.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Tlo3B-0004qb-PV; Thu, 20 Dec 2012 22:53:12 +0100 Message-ID: <50D388B1.3020709@kaltenbrunner.cc> Date: Thu, 20 Dec 2012 22:52:49 +0100 From: Stefan Kaltenbrunner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: achyutkumar88@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7762: problem on bytea field data reading References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:16a8:dc41::11 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/20/2012 11:17 AM, achyutkumar88@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 7762 > Logged by: Achyut kumar Dwivedi > Email address: achyutkumar88@gmail.com > PostgreSQL version: 9.0.0 > Operating system: Windows > Description: > > Hello Dear > > I am one of the user of postgres open source DB and i am getting the problem > from the reading the binary data of bytea field on 9.0 onwards version with > the windows OS only but it is working fine on 8.4 version on same platform. > > Problem is this produce the content size just double of original size of > content with the reading code on java language. > > get bytes("bytefieldname"); > > if the content size in 1002 byte, it will get the data of size 2005 byte. > > So plz can u help me what can i do to reduce this problem. the default output format for bytea was changed in 9.0 (see the release notes http://www.postgresql.org/docs/9.0/static/release-9-0.html in the "Migration to version 9.0" section) which might be causing the effect you are seeing. I have no idea about the jdbc/java stuff but either you need to move to a more recent version of the jdc driver your you need to change the bytea_output guc to 'escape'. Stefan -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs