Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6516B1337BEA for ; Thu, 21 Oct 2010 18:36:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 09609-02-6 for ; Thu, 21 Oct 2010 21:36:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id BA4371337DFF for ; Thu, 21 Oct 2010 18:30:27 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o9LLTBl21612; Thu, 21 Oct 2010 17:29:11 -0400 (EDT) From: Bruce Momjian Message-Id: <201010212129.o9LLTBl21612@momjian.us> Subject: Re: Gripe: bytea_output default => data corruption In-Reply-To: To: Rajesh Kumar Mallah Date: Thu, 21 Oct 2010 17:29:11 -0400 (EDT) CC: ljb , pgsql-general@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/833 X-Sequence-Number: 168745 Rajesh Kumar Mallah wrote: > Dear Griper!, > > fortunately someone showed a easy 'fix' > > ALTER DATABASE foo SET bytea_output='escape' ; Yes, we mentioned that setting in the release notes too: E.2.3.5. Data Types * Allow bytea values to be written in hex notation (Peter Eisentraut) The server parameter bytea_output controls whether hex or traditional format is used for bytea output. Libpq's PQescapeByteaConn() function automatically uses the hex format when connected to PostgreSQL 9.0 or newer servers. The new hex format will be directly compatible with more applications that use binary data, allowing them to store and retrieve it without extra conversion. It is also significantly faster to read and write than the traditional format. While the "Incompatibilities" section mentions only the first paragraph, this remention lower down has even more details. Not sure what else you wanted us to do. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +