Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7CF9EB5DC23 for ; Thu, 28 Jul 2011 15:10:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22572-02-4 for ; Thu, 28 Jul 2011 18:10:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 76F50B5D80A for ; Thu, 28 Jul 2011 15:10:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p6SIANtt001909; Thu, 28 Jul 2011 14:10:23 -0400 (EDT) To: Julian Mehnle cc: pgsql-bugs@postgresql.org Subject: Re: pg_restore silently chokes on object comments/descriptions ending in a backslash In-reply-to: <7994.1311777319@sss.pgh.pa.us> References: <201107270042.22427.julian@mehnle.net> <23791.1311737234@sss.pgh.pa.us> <201107270402.02561.julian@mehnle.net> <7994.1311777319@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 27 Jul 2011 10:35:19 -0400" Date: Thu, 28 Jul 2011 14:10:23 -0400 Message-ID: <1908.1311876623@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.093 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.193 X-Spam-Level: X-Archive-Number: 201107/198 X-Sequence-Number: 30810 I wrote: > Julian Mehnle writes: >> What would "removing that code entirely" mean? > I was wondering why it's necessary to parse the entry in the dump file > at all, rather than just spit it out to PQexec as-is. There's probably > a reason, but maybe we can find another way to solve whatever the > real problem is. I've applied a patch along those lines. Thanks for the report! regards, tom lane