Re: copy command verbose

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bob Powell" <Bob(at)hotchkiss(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: copy command verbose
Date: 2004-03-06 06:18:32
Message-ID: 14503.1078553912@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Bob Powell" <Bob(at)hotchkiss(dot)org> writes:
> Does anyone know if it is possible to make the COPY command in postgres
> verbose.

What PG version are you using? Do you consider 7.4's reporting
inadequate, and if so what would you change?

regression=# create table foo(f1 text, f2 int);
CREATE TABLE
regression=# copy foo from stdin;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>> 1 2
>> foo bar
>> \.
ERROR: invalid input syntax for integer: "bar"
CONTEXT: COPY foo, line 2, column f2: "bar"
regression=#

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mike 2004-03-06 07:33:25 why is this index not being used?
Previous Message Tom Lane 2004-03-06 05:31:07 Re: relocatable binary distribution