Re: Segmentation fault with pg_restore - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Segmentation fault with pg_restore
Date
Msg-id 10564.1474572291@sss.pgh.pa.us
Whole thread Raw
In response to Segmentation fault with pg_restore  (Keiko Oda <keiko@heroku.com>)
List pgsql-bugs
Keiko Oda <keiko@heroku.com> writes:
> I'm seeing "Segmentation fault" with a following pg_restore command, with
> the certain dump file (attached to this email, I had to remove some data
> from the file as the dump file contains the data that cannot be shared
> publicly, but I can reproduce this with full dump file also):

This file is corrupt.  I think what's happened to it is it went through
a Unix->Windows text conversion, replacing bytes that happened to look
like newlines with \r\n.

The fact that pg_restore segfaulted isn't terribly nice, but the best
we could do is give you some nondescript message saying there's something
wrong with the file ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14328: SELECT FOR UPDATE doesn't return existing row
Next
From: Robert Haas
Date:
Subject: Re: 9.6rc1 Background worker starting multiple times