Received: from island.6tems.com ([195.77.213.6]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1R9GKx22522; Tue, 27 Feb 2001 04:16:20 -0500 (EST) (envelope-from teixi@6tems.com) Received: from thinkpad (teixi@studio.6tems.com [195.77.213.230]) by island.6tems.com (8.11.1/8.11.1/Islandmail 8.11.0-6) with SMTP id f1R9Dcr15945; Tue, 27 Feb 2001 10:13:38 +0100 X-Authentication-Warning: island.6tems.com: Host teixi@studio.6tems.com [195.77.213.230] claimed to be thinkpad Date: Tue, 27 Feb 2001 10:19:12 +0100 From: Jaume Teixi To: pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org Subject: Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db Message-Id: <20010227101912.62338293.teixi@6tems.com> In-Reply-To: <27748.983243795@sss.pgh.pa.us> References: <20010226142858.2f1fcee8.teixi@6tems.com> <27748.983243795@sss.pgh.pa.us> X-Mailer: Sylpheed version 0.4.61 (GTK+ 1.2.8; Linux 2.2.17; i686) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/217 X-Sequence-Number: 824 On Mon, 26 Feb 2001 22:16:35 -0500 Tom Lane wrote: > 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ņ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!