Re: missing data for column

From: Steve Midgley <science(at)misuse(dot)org>
To: tel medola <tel(dot)medola(at)gmail(dot)com>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: missing data for column
Date: 2016-07-01 22:20:13
Message-ID: CAJexoSLXf-LMugMSk-qVQqrfmPOnU46AadpLdvSXOOa4KG+GOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

You could experiment (in a sandbox environment!!) with removing columns
that are not being found in the backup file (like 'callid') and see if you
can get something to load?

Do you remember if there were any DDL statements in the backup? Could you
load this backup from into an empty database?

Steve

On Fri, Jul 1, 2016 at 1:20 PM, tel medola <tel(dot)medola(at)gmail(dot)com> wrote:

> Hi.
> I tried to import records using the "\copy" or "copy" binary file, but I'm
> not getting.
> The postgres is prompting me that the column is missing, but it is in
> binary file (already opened it to check).
> I tried the command "\copy", "copy". I also tried to pass the columns as a
> parameter but did not succeed.
>
> Example below:
> COPY queue_log FROM '/Central001/queue_log3.bin';
>
> ERROR: missing data for column "callid"
> CONTEXT: COPY queue_log, line 1: "PGCOPY"
>
> Could someone please help me?
>
>
> PS:If there is any way to convert the binary file to text lat would also, because
> this way I could import in other ways.
>
> Thank you.
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gaurav Tomar 2016-07-06 07:39:20 Exception handling in Foreign table
Previous Message tel medola 2016-07-01 20:42:44 Re: missing data for column