Re: postgres 8.2 "end-of-copy marker corrupt"

From: James Long <pgsql-novice(at)museum(dot)rain(dot)com>
To: David Monarchi <david(dot)e(dot)monarchi(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: postgres 8.2 "end-of-copy marker corrupt"
Date: 2007-03-28 22:08:57
Message-ID: 20070328220857.GA15192@ns.umpquanet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, Mar 28, 2007 at 10:15:35AM -0400, Tom Lane wrote:
> "David Monarchi" <david(dot)e(dot)monarchi(at)gmail(dot)com> writes:
> > Each line is terminated with a LF (0A), including the last line. This is
> > the structure that of all of the other files that I can load have.
> > Some of the text fields in the file had \ in them, so I simply replaced all
> > of them with blanks to see if somewhere there was an escape sequence that
> > was causing the problem.
>
> Hm ... AFAICS from looking at the code, it's impossible to get that
> error message unless the file contains \ followed by . followed by
> something that's not either CR or LF.

What is the output of:

grep -c "\\\."

and if that is a "small" number, the output of:

grep -n "\\\."

and

grep "\\\." | hexdump -C

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Noel Faux 2007-03-29 06:37:32 Re: ER diagrams
Previous Message Lenorovitz, Joel 2007-03-28 16:54:43 Re: ER diagrams