pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5939: About bytea
3+ messages / 3 participants
[nested] [flat]

* BUG #5939: About bytea
@ 2011-03-22 06:34  Vincent Chan <joy717.xmu@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Vincent Chan @ 2011-03-22 06:34 UTC (permalink / raw)
  To: pgsql-bugs


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?



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #5939: About bytea
@ 2011-03-25 14:00  Peter Eisentraut <peter_e@gmx.net>
  parent: Vincent Chan <joy717.xmu@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2011-03-25 14:00 UTC (permalink / raw)
  To: Vincent Chan <joy717.xmu@gmail.com>; +Cc: pgsql-bugs

On tis, 2011-03-22 at 06:34 +0000, Vincent Chan wrote:
> 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. 

Please show an actual example of what you are observing.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #5939: About bytea
@ 2011-04-01 03:49  Craig Ringer <craig@postnewspapers.com.au>
  parent: Vincent Chan <joy717.xmu@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Craig Ringer @ 2011-04-01 03:49 UTC (permalink / raw)
  To: Vincent Chan <joy717.xmu@gmail.com>; +Cc: pgsql-bugs

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/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-04-01 03:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 06:34 BUG #5939: About bytea Vincent Chan <joy717.xmu@gmail.com>
2011-03-25 14:00 ` Peter Eisentraut <peter_e@gmx.net>
2011-04-01 03:49 ` Craig Ringer <craig@postnewspapers.com.au>

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