pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
To: achyutkumar88@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7762: problem on bytea field data reading
Date: Thu, 20 Dec 2012 22:52:49 +0100
Message-ID: <50D388B1.3020709@kaltenbrunner.cc> (raw)
In-Reply-To: <E1TldC9-0001Nz-7f@wrigleys.postgresql.org>
References: <E1TldC9-0001Nz-7f@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <50D388B1.3020709@kaltenbrunner.cc>
Permalink:  ../50D388B1.3020709@kaltenbrunner.cc/
Also on:    postgresql.org/message-id/50D388B1.3020709@kaltenbrunner.cc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: stefan@kaltenbrunner.cc, achyutkumar88@gmail.com
  Subject: Re: BUG #7762: problem on bytea field data reading
  In-Reply-To: <50D388B1.3020709@kaltenbrunner.cc>
  References: <E1TldC9-0001Nz-7f@wrigleys.postgresql.org> <50D388B1.3020709@kaltenbrunner.cc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox