pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Bytea Hex Format
2+ messages / 2 participants
[nested] [flat]

* Bytea Hex Format
@ 2009-08-10 15:05  dmp <danap@ttc-cmc.net>
  0 siblings, 1 reply; 2+ messages in thread

From: dmp @ 2009-08-10 15:05 UTC (permalink / raw)
  To: pgsql-jdbc

Hello,

Listed on commits for PostgreSQL this week was one from Tom Lane:

"Support hex-string input and output for type BYTEA.  Both hex format
and the traditional "escape" format are automatically handled on
input.  The output format is selected by the new GUC variable
bytea_output.  As committed, bytea_output defaults to HEX, which is
an *incompatible change*.  We will keep it this way for awhile for
testing purposes, but should consider whether to switch to the more
backwards-compatible default of ESCAPE before 8.5 is released.
Peter Eisentraut"

Is this going to effect the JDBC default behavior, currently the
the MySQLView program uses getBytes() to dump data for BYTEA and
that is in Octal format.

Dana Proctor
MyJSQLView Project Manager





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

* Re: Bytea Hex Format
@ 2009-08-10 22:52  Kris Jurka <books@ejurka.com>
  parent: dmp <danap@ttc-cmc.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2009-08-10 22:52 UTC (permalink / raw)
  To: dmp <danap@ttc-cmc.net>; +Cc: pgsql-jdbc



On Mon, 10 Aug 2009, dmp wrote:

> "Support hex-string input and output for type BYTEA.  Both hex format
> and the traditional "escape" format are automatically handled on
> input.  The output format is selected by the new GUC variable
> bytea_output.  As committed, bytea_output defaults to HEX, which is
> an *incompatible change*.
>
> Is this going to effect the JDBC default behavior, currently the
> the MySQLView program uses getBytes() to dump data for BYTEA and
> that is in Octal format.
>

It will require a change to the JDBC driver to correctly interpret hex 
escaped bytea data (which hasn't happened yet), but JDBC users will not 
need to change anything, getBytes will still be the call to use.

Kris Jurka




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


end of thread, other threads:[~2009-08-10 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-08-10 15:05 Bytea Hex Format dmp <danap@ttc-cmc.net>
2009-08-10 22:52 ` Kris Jurka <books@ejurka.com>

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