From: chris humphrey <chris@parallelsw.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: bytea problem
Date: Tue, 22 Nov 2011 13:21:18 -0700
Message-ID: <4ECC043E.9070807@parallelsw.com> (raw)
In-Reply-To: <CAH_hXRYScuxCJioKJhDppggFUJjmwNNxj_wy0a9BWEoDc=5c7g@mail.gmail.com>
References: <1321983450992-5014176.post@n5.nabble.com>
<jagpe2$ikk$1@dough.gmane.org>
<4ECBFF53.9020303@parallelsw.com>
<CAH_hXRYScuxCJioKJhDppggFUJjmwNNxj_wy0a9BWEoDc=5c7g@mail.gmail.com>
I looked at the types of ways to store the data, and ensuring it was
hex, I could see the '\x' at the beginning of the string... Once I
matched the driver with the db all was happy.
May want to update the jdbc driver to know what version of db it is
talking to and either make the code compatable between the versions, or
reject the connection if it is the wrong (incompatable) version....
Once things started working for me, I got lazy and stopped thinking
about the problem....
On 11/22/2011 1:15 PM, Maciek Sakrejda wrote:
>> I read a posting that the bytea datatype was refactored in version 9, and
>> one indication was that twice as many bytes came out as went in...
> I think the change in this default is what Chris is referring to:
>
> http://www.postgresql.org/docs/9.0/static/runtime-config-client.html#GUC-BYTEA-OUTPUT
>
> This certainly could affect what you're doing.
> ---
> Maciek Sakrejda | System Architect | Truviso
>
> 1065 E. Hillsdale Blvd., Suite 215
> Foster City, CA 94404
> (650) 242-3500 Main
> www.truviso.com
>
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-jdbc@postgresql.org
Cc: chris@parallelsw.com
Subject: Re: bytea problem
In-Reply-To: <4ECC043E.9070807@parallelsw.com>
References: <1321983450992-5014176.post@n5.nabble.com> <jagpe2$ikk$1@dough.gmane.org> <4ECBFF53.9020303@parallelsw.com> <CAH_hXRYScuxCJioKJhDppggFUJjmwNNxj_wy0a9BWEoDc=5c7g@mail.gmail.com> <4ECC043E.9070807@parallelsw.com>
* 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