From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peralta Miguel-MPERALT1 <Miguel.Peralta@motorola.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Bad Date field
Date: Thu, 29 Nov 2001 13:32:51 -0500
Message-ID: <19591.1007058771@sss.pgh.pa.us> (raw)
In-Reply-To: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05>
References: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05>
Peralta Miguel-MPERALT1 <Miguel.Peralta@motorola.com> writes:
> COPY release_data FROM '/home/mperalta/release_data' USING DELIMITERS '|'
> When I issue this command, the response afte a while is the following:
> ERROR; Bad date external representation '9'
> The external file is rather large and I've tried finding this bad date
> manually with no success.
How old is your Postgres? The last several releases include line
numbers when complaining about COPY problems.
In the meantime, I like the other person's suggestion about importing
into a temp table and then working with the temp table to clean up
the data.
regards, tom lane
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: tgl@sss.pgh.pa.us, Miguel.Peralta@motorola.com
Subject: Re: Bad Date field
In-Reply-To: <19591.1007058771@sss.pgh.pa.us>
References: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05> <19591.1007058771@sss.pgh.pa.us>
* 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