pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 'invalid command \N' during restore from pg_dump
Date: Fri, 17 Oct 2008 23:20:55 +0200
Message-ID: <48F901B7.2050807@gmx.de> (raw)
In-Reply-To: <B8A008D3-9F09-49C6-B413-86C41EEB4969@kevinkempterllc.com>
References: <B8A008D3-9F09-49C6-B413-86C41EEB4969@kevinkempterllc.com>

Hello,

kevin kempter wrote:

> I'm trying to run a restore from a pg_dump and I get loads of these:
> 
> invalid command \N
> 
> 
> I see lots of \N char's in the data for some of the tables (NULL's ?)

Are you using pgAdmin's SQL-editor for restoring by any chance? It
throws errors - especially if the \N (NULL) is at the beginning of the
line. Use psql for restoring or try with activating the option to use
INSERT instead of COPY commands for creating dumps with pg_dump.

Peter



view thread (4+ messages)  latest in thread

Message-ID: <48F901B7.2050807@gmx.de>
Permalink:  ../48F901B7.2050807@gmx.de/
Also on:    postgresql.org/message-id/48F901B7.2050807@gmx.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Jan-Peter.Seifert@gmx.de, kevin@kevinkempterllc.com
  Subject: Re: 'invalid command \N' during restore from pg_dump
  In-Reply-To: <48F901B7.2050807@gmx.de>

* 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