Re: Help with COPY Error: invalid UTF-8 byte ....

From: Richard Huxton <dev(at)archonet(dot)com>
To: Alex <alex(at)meerkatsoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Help with COPY Error: invalid UTF-8 byte ....
Date: 2005-11-28 14:40:10
Message-ID: 438B16CA.3060806@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex wrote:
> Hi,
> I am having a problem with a copy command, saying ERROR: invalid UTF-8
> byte sequence detected...
>
> The problem actually is that the entire copy job terminates instead of
> just ignoring the record in question.
>
> Is there a way to have faulty records ignored only without terminating
> the entire copy job?

Not with COPY - you might want to look for a project called (iirc)
"pgloader" though which might be useful to you.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2005-11-28 15:11:00 Re: how to get size of array in function
Previous Message Tom Lane 2005-11-28 14:19:37 Re: Errors with temporary tables