Received: from funsql.fun (fw.foretagsuniversitetet.se [212.75.89.162]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f22D8Jx04722 for ; Fri, 2 Mar 2001 08:08:20 -0500 (EST) (envelope-from johan.segernas@foretagsuniversitetet.se) Received: by funsql.fun with Internet Mail Service (5.5.2653.19) id <160XCBR7>; Fri, 2 Mar 2001 14:05:47 +0100 Message-ID: <1AA3DCC66D03D740BE070FB8CB48D9A6D2CD@funsql.fun> From: Johan Segernas To: Johan Segernas , pgsql-admin@postgresql.org Subject: RE: COPY doesn't works when containing ' ' or ' ' charact ers on db Date: Fri, 2 Mar 2001 14:05:44 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0A319.7DA37C70" X-Archive-Number: 200103/21 X-Sequence-Number: 865 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0A319.7DA37C70 Content-Type: text/plain; charset="iso-2022-jp" And of course i mean 'bigger' not 'faster'.. -----Original Message----- From: Johan Segernas [mailto:johan.segernas@foretagsuniversitetet.se] Sent: den 2 mars 2001 14:01 To: 'Rainer Mager'; Tom Lane; pgsql-admin@postgresql.org Subject: RE: [ADMIN] COPY doesn't works when containing ' ' or ' ' charact ers on db I had exactley the same problem and solved in the very same way. A lot slower and alot faster but it worked. Tried with changing encoding and so on, but -d made my difference. Is there any way to go around this? I dont have to be forced to take backup with -d if our database gets bigger.. if avoidable. > -----Original Message----- > From: Rainer Mager [ mailto:rmager@vgkk.com ] > Sent: den 1 mars 2001 00:02 > To: Tom Lane; pgsql-admin@postgresql.org > Subject: RE: [ADMIN] COPY doesn't works when containing ' ' > or ' ' characters on db > > > 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 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?|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 > ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------_=_NextPart_001_01C0A319.7DA37C70 Content-Type: text/html; charset="iso-2022-jp" RE: [ADMIN] COPY doesn't works when containing ' ' or ' ' characters on db
And of course i mean 'bigger' not 'faster'..
 
-----Original Message-----
From: Johan Segernas [mailto:johan.segernas@foretagsuniversitetet.se]
Sent: den 2 mars 2001 14:01
To: 'Rainer Mager'; Tom Lane; pgsql-admin@postgresql.org
Subject: RE: [ADMIN] COPY doesn't works when containing ' ' or ' ' charact ers on db

I had exactley the same problem and solved in the very same way.
A lot slower and alot faster but it worked.

Tried with changing encoding and so on, but -d made my difference.

Is there any way to go around this? I dont have to be forced to take backup
with -d if our database gets bigger.. if avoidable.

> -----Original Message-----
> From: Rainer Mager [mailto:rmager@vgkk.com]
> Sent: den 1 mars 2001 00:02
> To: Tom Lane; pgsql-admin@postgresql.org
> Subject: RE: [ADMIN] COPY doesn't works when containing ' '
> or ' ' characters on db
>
>
> 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?|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
>
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

------_=_NextPart_001_01C0A319.7DA37C70--