Received: from dhscsvcs.com ([63.173.68.15]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fATH1Vm77378 for ; Thu, 29 Nov 2001 12:01:31 -0500 (EST) (envelope-from webmaster@dhs-club.com) Received: from dhs-club.com ([63.124.98.246]) by dhscsvcs.com (8.11.2/8.11.2) with ESMTP id fATGwKE12472; Thu, 29 Nov 2001 08:58:21 -0800 Message-ID: <3C0669F3.54DC7842@dhs-club.com> Date: Thu, 29 Nov 2001 12:01:39 -0500 From: DHSC Webmaster Organization: The DHS Club X-Mailer: Mozilla 4.73 [en]C-CCK-MCD compaq (Win98; U) X-Accept-Language: en 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=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/168 X-Sequence-Number: 2693 You could use a perl script to read your data and do a pattern match for consistency with your date output. Or you could import the data into a temp table which has a text field instead of date. You could query against your temp table to find offending data. Then use SQL to insert the data into your real table. 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) -- Bill MacArthur Webmaster DHS Club