From: Rob Sargent <robjsargent@gmail.com>
To: Blake McBride <blake@mcbride.name>
Cc: pgsql-general@postgresql.org
Subject: Re: Problem with COPY command on pg_dump
Date: Sat, 9 Dec 2017 08:53:58 -0700
Message-ID: <93532B21-1F53-424D-954E-1096C2852C12@gmail.com> (raw)
In-Reply-To: <CABwHSOvhnqZW1O5aHAZVd8OvhMC_UjhkWQQRcf9VYpbJ9Mr_7g@mail.gmail.com>
References: <CABwHSOvhnqZW1O5aHAZVd8OvhMC_UjhkWQQRcf9VYpbJ9Mr_7g@mail.gmail.com>
> On Dec 9, 2017, at 8:42 AM, Blake McBride <blake@mcbride.name> wrote:
>
> Greetings,
>
> I am using pg_dump on version 9.5.10 and trying to import it on version 9.3.20. Many (or all) COPY commands are failing with messages like:
>
> psql:16504.db:16874: ERROR: missing data for column "street"
> CONTEXT: COPY address, line 1: ""
>
> Is there an easy way for me to fix this (like export with some compatibility flag)?
>
> Thanks!
>
> Blake McBride
>
Is there in fact ‘street’ data in the file? Sounds like you have the wrong number of columns. Do you have your actual dump and restore commands to show here?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, blake@mcbride.name
Subject: Re: Problem with COPY command on pg_dump
In-Reply-To: <93532B21-1F53-424D-954E-1096C2852C12@gmail.com>
References: <CABwHSOvhnqZW1O5aHAZVd8OvhMC_UjhkWQQRcf9VYpbJ9Mr_7g@mail.gmail.com> <93532B21-1F53-424D-954E-1096C2852C12@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox