Re: "Bad date external representation"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lynna Landstreet <lynna(at)gallery44(dot)org>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: "Bad date external representation"
Date: 2003-06-19 02:40:48
Message-ID: 5837.1055990448@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Lynna Landstreet <lynna(at)gallery44(dot)org> writes:
> ERROR: copy: line 1, Bad date external representation '9/19/2002'

That date as given is perfectly good:

regression=# select '9/19/2002'::date;
date
------------
2002-09-19
(1 row)

I suspect that the problem is whitespace that is not showing in your
representation of the error message. A likely bet is that the dump
file has been Microsoft-ized, with newlines converted into carriage
return and linefeed ... the CR character will be taken as part of the
data by COPY. Is the error message strangely formatted at all?

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2003-06-19 02:46:46 Re: Limiting processor power on queries
Previous Message Ron Mayer 2003-06-19 01:10:58 Re: Limiting processor power on queries