RE: COPY doesn't works when containing ' ' or ' ' characters on db - Mailing list pgsql-admin

From Rainer Mager
Subject RE: COPY doesn't works when containing ' ' or ' ' characters on db
Date
Msg-id NEBBJBCAFMMNIHGDLFKGKEPKDCAA.rmager@vgkk.com
Whole thread Raw
In response to Re: COPY doesn't works when containing ' ' or ' ' characters on db  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
I haven't been following this thread very carefully but I just remembered a
similar problem we had that is probably related. We did a dump from a UTF-8
db containind English, Japanese, and Korean data. When the dump was done in
the default mode (e.g., via COPY statements) then we could no restore it. It
would die on certain characters. We then tried dumping in with -nd flags.
This fixed the problem for us although the restore is a lot slower.

--Rainer

> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Tom Lane
> Sent: Tuesday, February 27, 2001 12:17 PM
> To: Jaume Teixi
> Cc: pgsql-hackers@postgresql.org; pgsql-admin@postgresql.org; Richard T.
> Robino; Stefan Huber
> Subject: Re: [ADMIN] COPY doesn't works when containing ' ' or ' '
> characters on db
>
>
> Jaume Teixi <teixi@6tems.com> writes:
> > I finally percated that when data contains '・ or '・ it's impossible to
> > parse trought:
>
> > COPY products FROM '/var/lib/postgres/dadesi.txt' USING
> DELIMITERS '|' \g
>
> > it causes:
>
> > SELECT edicion FROM products;
> >      edicion
> > -----------------
> >  Espa\x81\xC2|Nacional <-------puts on the same cell either there's an '|' in
> > the middle!!!
>
> Very odd.  What LOCALE and multibyte encodings are you using, if any?
> This seems like it must be a multibyte issue, but I can't guess what.
>
> Also, which Postgres version are you running?  If you said, I missed it.
>
>             regards, tom lane


pgsql-admin by date:

Previous
From: lbottorff@harveycounty.com
Date:
Subject: Python, Postgres support?
Next
From: Derek Neighbors
Date:
Subject: Re: Python, Postgres support?