From: Chuck D. <pgsql-list@nullmx.com>
To: Adrian Klaver <aklaver@comcast.net>
To: pgsql-sql@postgresql.org
Subject: Re: request for help with COPY syntax
Date: Wed, 24 Oct 2007 00:59:04 -0600
Message-ID: <200710240059.04348.pgsql-list@nullmx.com> (raw)
In-Reply-To: <200710231951.18423.aklaver@comcast.net>
References: <200710231019.07833.pgsql-list@nullmx.com>
<200710231951.18423.aklaver@comcast.net>
On October 23, 2007 08:51:18 pm you wrote:
>
> I got it to work with your sample data by using the COPY command as
> follows: COPY geo.orig_city_maxmind
> FROM '/home/www/geo/DATA/MAXMIND.com/cities_no_header.txt'
> CSV quote as '''';
I see what you are after and you solved the syntax problem I was having, but
now I get the same error on a different line:
ad,l'aldosa,L'Aldosa,02,42.5833333,1.6333333
I guess it considers that line quoted now. In other words, some lines may
have both single and double quotes involved, like this:
kz,otdeleniye imeni dvadtsat' vtorogo parts"yezda,Otdeleniye Imeni Dvadtsat'
Vtorogo Parts"yezda,10,41.47,69.1280556
Is there any way to tell Postgresql that a CSV file has no quotes around each
field, and that each field may have single or double quotes or both?
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pgsql-list@nullmx.com, aklaver@comcast.net
Subject: Re: request for help with COPY syntax
In-Reply-To: <200710240059.04348.pgsql-list@nullmx.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