From: Rainer Mager <rmager@vgkk.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-admin@postgresql.org
Subject: RE: COPY doesn't works when containing ' ' or ' ' characters on db
Date: Thu, 1 Mar 2001 08:01:32 +0900
Message-ID: <NEBBJBCAFMMNIHGDLFKGKEPKDCAA.rmager@vgkk.com> (raw)
In-Reply-To: <27748.983243795@sss.pgh.pa.us>
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 '$B!&(B or '$B!&(B 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$BB(B|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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rmager@vgkk.com, tgl@sss.pgh.pa.us
Subject: Re: COPY doesn't works when containing ' ' or ' ' characters on db
In-Reply-To: <NEBBJBCAFMMNIHGDLFKGKEPKDCAA.rmager@vgkk.com>
References: <27748.983243795@sss.pgh.pa.us> <NEBBJBCAFMMNIHGDLFKGKEPKDCAA.rmager@vgkk.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox