From: | Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc> |
---|---|
To: | achyutkumar88(at)gmail(dot)com |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #7762: problem on bytea field data reading |
Date: | 2012-12-20 21:52:49 |
Message-ID: | 50D388B1.3020709@kaltenbrunner.cc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 12/20/2012 11:17 AM, achyutkumar88(at)gmail(dot)com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7762
> Logged by: Achyut kumar Dwivedi
> Email address: achyutkumar88(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-12-20 22:32:32 | Re: BUG #7761: Out of memory when running pg_dump |
Previous Message | Andres Freund | 2012-12-20 21:50:54 | Re: BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types |