From: Jaume Teixi <teixi@6tems.com>
To: pgsql-hackers@postgresql.org
To: pgsql-admin@postgresql.org
Subject: Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db
Date: Tue, 27 Feb 2001 10:19:12 +0100
Message-ID: <20010227101912.62338293.teixi@6tems.com> (raw)
In-Reply-To: <27748.983243795@sss.pgh.pa.us>
References: <20010226142858.2f1fcee8.teixi@6tems.com>
<27748.983243795@sss.pgh.pa.us>
On Mon, 26 Feb 2001 22:16:35 -0500 Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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ña|Nacional <-------puts on the same cell either there's an '|'
in
> > the middle!!!
I finally, thanks to Oliver Elphick,
managed to create database with:
CREATE DATABASE "demo" WITH ENCODING = 'SQL_ASCII'
and data was imported OK, great, thanks!
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: teixi@6tems.com, pgsql-hackers@postgresql.org
Subject: Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db
In-Reply-To: <20010227101912.62338293.teixi@6tems.com>
References: <20010226142858.2f1fcee8.teixi@6tems.com> <27748.983243795@sss.pgh.pa.us> <20010227101912.62338293.teixi@6tems.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