Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1916BB5DC01 for ; Wed, 27 Jul 2011 05:04:58 -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 16975-04 for ; Wed, 27 Jul 2011 08:04:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from io.link-m.de (io.link-m.de [82.135.8.34]) by mail.postgresql.org (Postfix) with ESMTP id DB34CB5DC04 for ; Wed, 27 Jul 2011 05:04:51 -0300 (ADT) Received: from [10.0.2.15] (50-0-128-85.dsl.dynamic.sonic.net [::ffff:50.0.128.85]) (AUTH: CRAM-MD5 julian@mehnle.net, TLS: TLSv1/SSLv3, 256bits, AES256-SHA) by io.link-m.de with esmtp; Wed, 27 Jul 2011 04:02:05 +0000 id 0000000011A6246F.000000004E2F8DBD.00002948 From: Julian Mehnle To: pgsql-bugs@postgresql.org Subject: Re: pg_restore silently chokes on object comments/descriptions ending in a backslash Date: Wed, 27 Jul 2011 04:01:57 +0000 User-Agent: KMail/1.9.9 References: <201107270042.22427.julian@mehnle.net> <23791.1311737234@sss.pgh.pa.us> In-Reply-To: <23791.1311737234@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart16207248.VblGp7pIBI"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201107270402.02561.julian@mehnle.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/186 X-Sequence-Number: 30798 --nextPart16207248.VblGp7pIBI Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm subscribed to the pgsql-bugs list, so no need to CC me. :-) Tom Lane wrote: > Reproduced here against HEAD. The problem seems to be that > pg_backup_db.c's _sendSQLLine() contains a mini SQL lexer that is not > cognizant of standard_conforming_strings. Oh, right, I forgot to mention I have standard_conforming_strings enabled. = =20 However, I understand that is to become the new default anyway. > Not sure about a simple fix,=20 > 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? > As a temporary workaround, the SQL text file that pg_restore produces > by default seems to be valid, so you could pipe that into psql. Hmm, right. So at least my existing dumps aren't useless. Thanks. =2DJulian --nextPart16207248.VblGp7pIBI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAk4vjbUACgkQwL7PKlBZWjta/wCfe5PnkqJtf74UWq4HgQ1SNVvy /IgAn0yM2ZaeJKlwFZNDlSGGvmnl0PNb =3lDr -----END PGP SIGNATURE----- --nextPart16207248.VblGp7pIBI--