Re: pg_restore silently chokes on object comments/descriptions ending in a backslash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Julian Mehnle <julian(at)mehnle(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_restore silently chokes on object comments/descriptions ending in a backslash
Date: 2011-07-28 18:10:23
Message-ID: 1908.1311876623@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> Julian Mehnle <julian(at)mehnle(dot)net> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Gene Lum 2011-07-29 15:44:36 BUG #6134: pg_restore failed with "corrupt tar header"
Previous Message Tom Lane 2011-07-27 23:50:39 Re: BUG #6133: -lpq frees unallocated memory on exit