Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 89E8CB5DC08 for ; Wed, 27 Jul 2011 11:35:28 -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 36032-07 for ; Wed, 27 Jul 2011 14:35:22 +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 23F5DB5DC02 for ; Wed, 27 Jul 2011 11:35:22 -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 p6REZJpY007995; Wed, 27 Jul 2011 10:35:20 -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: <201107270402.02561.julian@mehnle.net> References: <201107270042.22427.julian@mehnle.net> <23791.1311737234@sss.pgh.pa.us> <201107270402.02561.julian@mehnle.net> Comments: In-reply-to Julian Mehnle message dated "Wed, 27 Jul 2011 04:01:57 -0000" Date: Wed, 27 Jul 2011 10:35:19 -0400 Message-ID: <7994.1311777319@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/187 X-Sequence-Number: 30799 Julian Mehnle writes: > I'm subscribed to the pgsql-bugs list, so no need to CC me. :-) cc to people in the thread is the established practice on these lists. It provides a bit more robustness when the lists are busy or slow. You can set your subscription so the listserv won't send you an extra copy, I believe, but I don't know the incantation offhand. > Tom Lane wrote: >> Not sure about a simple fix, >> and I rather wonder if we shouldn't try to remove that code entirely >> instead of "fix" it. > 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. regards, tom lane