Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D8794632579 for ; Mon, 10 Aug 2009 19:53:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 39606-09 for ; Mon, 10 Aug 2009 22:52:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 1DA91634365 for ; Mon, 10 Aug 2009 19:52:53 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 49EF4A2F2; Mon, 10 Aug 2009 18:52:51 -0400 (EDT) Date: Mon, 10 Aug 2009 18:52:51 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: dmp cc: pgsql-jdbc@postgresql.org Subject: Re: Bytea Hex Format In-Reply-To: <4A803721.3070102@ttc-cmc.net> Message-ID: References: <4A803721.3070102@ttc-cmc.net> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.276 tagged_above=-10 required=5 tests=AWL=1.323, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/15 X-Sequence-Number: 19864 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