From: Jaume Teixi <teixi@6tems.com>
To: pgsql-admin@postgresql.org
To: pgsql-hackers@postgresql.org
Subject: Still some problems importing with COPY
Date: Wed, 28 Feb 2001 16:44:54 +0100
Message-ID: <20010228164454.4b931f24.teixi@6tems.com> (raw)
Hi,
I want to import from a .txt file, I usually use:
COPY noticies FROM '/home/teixi/_6tm_/_elbulli/premsai.txt' USING
DELIMITERS '|' \g
a) If table 'noticies' has a date row and is null on data file it claims:
Unable to import date filed ''
so how to admit date fields null?
b) When there are some 'carriage returns' on a field in the data file is
understood as a new
|row1data1|row1data2|row1data3|^M
|row2data1^M
stillrow2data1|row2data2|row2data2|^M
is interpreted as a 3 row data file when in reallity is a 2 row data file.
how could I handle this when importing ?
bests from barcelona,
jaume teixi
ps: weather loops between 5ºC to 30ºC, crazy.
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: Still some problems importing with COPY
In-Reply-To: <20010228164454.4b931f24.teixi@6tems.com>
References: <20010228164454.4b931f24.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