Re: Getting "insufficient data left in message" on copy with binary

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gordon Shannon <gordo169(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting "insufficient data left in message" on copy with binary
Date: 2009-09-03 20:14:40
Message-ID: 19023.1252008880@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gordon Shannon <gordo169(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message acordner 2009-09-03 20:15:11 Add Large Object support to database programmatically
Previous Message APseudoUtopia 2009-09-03 20:13:13 Re: add a value to an ENUM type