Re: 'invalid command \N' during restore from pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kevin kempter <kevin(at)kevinkempterllc(dot)com>
Cc: Jan-Peter Seifert <Jan-Peter(dot)Seifert(at)gmx(dot)de>, pgsql-admin(at)postgresql(dot)org
Subject: Re: 'invalid command \N' during restore from pg_dump
Date: 2008-10-17 23:06:15
Message-ID: 20723.1224284775@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

kevin kempter <kevin(at)kevinkempterllc(dot)com> writes:
> I'm trying to run a restore from a pg_dump and I get loads of these:
> invalid command \N

It sounds like you had an error in a COPY command, which caused psql
not to go into copy-data-eating mode but instead keep trying to read
the data as SQL commands.

Generally speaking, looking at the *first* error is the most informative
way to proceed --- all the rest may just be cascading failures.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ibrahim Harrani 2008-10-19 15:16:51 Re: pg_standby and continuous recovery
Previous Message kevin kempter 2008-10-17 22:03:08 Re: 'invalid command \N' during restore from pg_dump