Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 8CCBF6576E for ; Tue, 31 Jul 2012 04:07:52 -0300 (ADT) Received: from sd-17937.dedibox.fr ([88.191.100.74]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sw6YX-0001Dr-R1 for pgsql-bugs@postgresql.org; Tue, 31 Jul 2012 07:07:51 +0000 Received: from [192.168.10.3] (AMontsouris-552-1-53-50.w92-140.abo.wanadoo.fr [92.140.28.50]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 1D5583B8F5; Tue, 31 Jul 2012 09:12:02 +0200 (CEST) Message-ID: <1343718457.2011.111.camel@localhost.localdomain> Subject: Re: Error on pg_settings.bytea_output for pg9.1 From: Guillaume Lelarge To: Craig Ringer Cc: "Emcisc (JinWei) Zhao" , pgsql-bugs@postgresql.org Date: Tue, 31 Jul 2012 09:07:37 +0200 In-Reply-To: <501775FD.3080306@ringerc.id.au> References: <50174099.1050701@ringerc.id.au> <1343713848.2011.105.camel@localhost.localdomain> <501775FD.3080306@ringerc.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-2.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/243 X-Sequence-Number: 33719 On Tue, 2012-07-31 at 14:06 +0800, Craig Ringer wrote: > On 07/31/2012 01:50 PM, Guillaume Lelarge wrote: > >> Check the PgAdmin-III preferences; there may be an option to control its > >> preferred bytea format. > >> > > There's no option to control this. > > > Thanks for confirming that. > > Is it really best for PgAdmin-III to have a different default than Pg > its self? > Well, we didn't until we had an issue to get informations from the tgargs column of the pg_trigger catalog. I don't remember the details right now, and I still didn't check how psql works with this, so I may be wrong. The only way I could find to fix the issue was to set bytea_output to escape. It probably is specific to pgAdmin. If we can't fix this another way, we can have a workaround. We only need this setting for pgAdmin's browser. Not the query tool. It would be a nice and quick workaround. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com