Re: Getting "insufficient data left in message" on copy with binary - Mailing list pgsql-general

From Tom Lane
Subject Re: Getting "insufficient data left in message" on copy with binary
Date
Msg-id 19023.1252008880@sss.pgh.pa.us
Whole thread Raw
In response to Getting "insufficient data left in message" on copy with binary  (Gordon Shannon <gordo169@gmail.com>)
Responses Re: Getting "insufficient data left in message" on copy with binary
List pgsql-general
Gordon Shannon <gordo169@gmail.com> writes:
> I'm running 8.4 on Linux/Centos.  I am doing a "copy (select ....) to
> '/absolute/path/to/file.dat' with binary". That works fine.  But when I load
> that file into a table...

>   copy mytable (id, mlid, parent_mlid, author_id, date_id, time_id,
> content_type_id, provider_id,
>     is_duplicate, is_spam, language_code, profanity, tonality, sentiment,
> created_time, updated_at)
>   from '/absolute/path/to/file.dat' with binary;

>   ERROR:  insufficient data left in message
>   CONTEXT:  COPY mytable, line 1, column provider_id

> Anybody seen this?

No.  Can you extract a self-contained test case?

            regards, tom lane

pgsql-general by date:

Previous
From: APseudoUtopia
Date:
Subject: Re: add a value to an ENUM type
Next
From: Edoardo Panfili
Date:
Subject: Re: add a value to an ENUM type