pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Vincent Chan <joy717.xmu@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5939: About bytea
Date: Fri, 01 Apr 2011 11:49:20 +0800
Message-ID: <4D954B40.2050702@postnewspapers.com.au> (raw)
In-Reply-To: <201103220634.p2M6YBtD083575@wwwmaster.postgresql.org>
References: <201103220634.p2M6YBtD083575@wwwmaster.postgresql.org>

On 22/03/2011 2:34 PM, Vincent Chan wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5939
> Logged by:          Vincent Chan
> Email address:      joy717.xmu@gmail.com
> PostgreSQL version: 9.0
> Operating system:   Win7 x64
> Description:        About bytea
> Details:
>
> when saving a bytes array,
> for example a bytes array which length is 2,
> but after saving,
> it's length will be change to 3.
> but in postgres 8.4, the array length is still 2.
> Is this a bug?

I'd say you're using a client driver version that doesn't understand 
hex-encoded escapes. Try setting bytea_output to 'escape' instead of 'hex'.

It'd help if you provided even some minimal information like code 
samples, the language you're using, the version of the access driver 
(npgsql/pgodbc/libpq/psycopg/php-pgsql/etc) you're using, and other 
basic details.

Please read the PostgreSQL 9.0 release notes:
     http://www.postgresql.org/docs/9.0/static/release-9-0.html
and the documentation on bytea:
     http://www.postgresql.org/docs/9.0/static/datatype-binary.html

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/



view thread (3+ messages)

Message-ID: <4D954B40.2050702@postnewspapers.com.au>
Permalink:  ../4D954B40.2050702@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4D954B40.2050702@postnewspapers.com.au

 · 

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: craig@postnewspapers.com.au, joy717.xmu@gmail.com
  Subject: Re: BUG #5939: About bytea
  In-Reply-To: <4D954B40.2050702@postnewspapers.com.au>
  References: <201103220634.p2M6YBtD083575@wwwmaster.postgresql.org> <4D954B40.2050702@postnewspapers.com.au>

* 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