Received: from mocha2.baileylink.net (mocha2.baileylink.net [12.152.112.28]) by postgresql.org (8.11.3/8.11.4) with SMTP id fATH8Dm77750 for ; Thu, 29 Nov 2001 12:08:13 -0500 (EST) (envelope-from banghe@baileylink.net) Received: (qmail 26782 invoked from network); 29 Nov 2001 17:01:49 -0000 Received: from dhcp61.baileylink.net (HELO baileylink.net) (12.152.112.61) by mocha2.baileylink.net with SMTP; 29 Nov 2001 17:01:49 -0000 Message-ID: <3C066B97.4B54C407@baileylink.net> Date: Thu, 29 Nov 2001 11:08:39 -0600 From: bangh X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en,zh-CN,zh,zh-TW,pdf MIME-Version: 1.0 To: Peralta Miguel-MPERALT1 CC: pgsql-admin@postgresql.org Subject: Re: Bad Date field References: <698AE46F861FD51182CB0002B328C3720243DEB1@IL75EXM05> Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/169 X-Sequence-Number: 2694 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)