From: bangh <banghe@baileylink.net>
To: Peralta Miguel-MPERALT1 <Miguel.Peralta@motorola.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Bad Date field
Date: Thu, 29 Nov 2001 11:08:39 -0600
Message-ID: <3C066B97.4B54C407@baileylink.net> (raw)
References: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05>
Suggest:
create another table, use text, instead of date type for that filed. AFter you
get imported and fix invalid data for that filed, in pgsql, you can convert it
to date type
In pgsql, this is easy to find those invalid data.
Bangh
Peralta Miguel-MPERALT1 wrote:
> Hello everyone:
>
> Would anyone know how to find a bad date field in an external file? I have
> an external file that I am using to populate a table using the following
> command:
> 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. The table I'm copying into has a datestamp of
> type DATE.
>
> Any suggestions would be greatly appreciated.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
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: banghe@baileylink.net, Miguel.Peralta@motorola.com
Subject: Re: Bad Date field
In-Reply-To: <3C066B97.4B54C407@baileylink.net>
References: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05> <3C066B97.4B54C407@baileylink.net>
* 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