pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julian Mehnle <julian@mehnle.net>
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
Message-ID: <201107270402.02561.julian@mehnle.net> (raw)
In-Reply-To: <23791.1311737234@sss.pgh.pa.us>
References: <201107270042.22427.julian@mehnle.net>
	<23791.1311737234@sss.pgh.pa.us>

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.  
However, I understand that is to become the new default anyway.

> 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?

> 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.

-Julian

Attachments:

  signature.asc (application/pgp-signature, 196B) download

view thread (8+ messages)  latest in thread

Message-ID: <201107270402.02561.julian@mehnle.net>
Permalink:  ../201107270402.02561.julian@mehnle.net/
Also on:    postgresql.org/message-id/201107270402.02561.julian@mehnle.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: julian@mehnle.net
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox