Re: copy command - date

From: Paul Lambert <paul(dot)lambert(at)autoledgers(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: copy command - date
Date: 2007-08-13 01:55:15
Message-ID: 46BFBA03.2070909@autoledgers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

novice wrote:
> I'm using pg version 8.2.4. What is the best method to load this data?
> I have just a little over 55,000 entries.
>
> db5=> \copy maintenance FROM test.txt
> ERROR: invalid input syntax for integer: "3665 OK SM
> 07/07/13 06:09"
> CONTEXT: COPY maintenance, line 1, column maintenance_id: "3665 OK
> SM 07/07/13 06:09"
>

That's not complaining about the date, that is complaining that your
input file does not contain the maintenance_id column.

--
Paul Lambert
Database Administrator
AutoLedgers

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2007-08-13 01:59:33 Re: copy command - date
Previous Message Tom Lane 2007-08-13 01:54:37 Re: copy command - date