Re: copy command - date

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Paul Lambert <paul(dot)lambert(at)autoledgers(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: copy command - date
Date: 2007-08-13 02:33:05
Message-ID: 14309.1186972385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul Lambert <paul(dot)lambert(at)autoledgers(dot)com(dot)au> writes:
>> novice wrote:
>>> db5=> \copy maintenance FROM test.txt

> I don't think copy allows you to leave columns out of your input file -
> even if they belong to a sequence.

Well, it does, but you have to specify which ones are being provided,
eg \copy tab(col1,col4,col7, ...

But the long and the short of it is that COPY doesn't see any column
delimiters at all in this file. We're guessing as to what the OP
intends the columns to be, but whatever he wants, he needs something
other than an uncertain number of spaces to separate them ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raj A 2007-08-13 03:23:17 Re: copy command - date
Previous Message novice 2007-08-13 02:30:13 Re: copy command - date