Re: problem with 'copy binary' file format

From: john guthrie <jguthrie(at)psynapsetech(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: problem with 'copy binary' file format
Date: 2003-01-22 12:41:08
Message-ID: 3E2E9164.1080201@psynapsetech.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

i agree. i'm not doing anything with the file. i can start up psql, type:

copy binary my_table from 'tmpfile';

and get the exact same error message. the table schema, by the way,
consists of two int4's, a timestamp, and a bytea.

thanks.
john

Tom Lane wrote:
> john guthrie <jguthrie(at)psynapsetech(dot)net> writes:
>
>>i am having a problem creating a 'copy binary' input file in c
>>on my linux box running postgresql 7.2.2. the error message i get is:
>> ERROR: copy: line 1, pg_atoi: error in "PGBCOPY": can't parse "PGBCOPY"
>
>
> And what exactly are you doing with the file after you create it?
> pg_atoi shouldn't be invoked at all during COPY BINARY FROM ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message john guthrie 2003-01-22 17:10:18 Re: problem with 'copy binary' file format
Previous Message Tom Lane 2003-01-21 22:19:01 Re: problem with 'copy binary' file format