pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerardo Herzig <gherzig@fmed.uba.ar>
To: Bryce Nesbitt <bryce2@obviously.com>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: pg_restore "WARNING: errors ignored on restore"
Date: Thu, 29 Oct 2009 15:04:19 -0300
Message-ID: <4AE9D923.2010802@fmed.uba.ar> (raw)
In-Reply-To: <4AE8910E.4080201@obviously.com>
References: <4AE8910E.4080201@obviously.com>

Bryce Nesbitt wrote:
> So when restoring a particular DB with pg_restore, I get "WARNING:
> errors ignore on restore".  Is there a way to dump a list of those errors?
> 
> 
> #  /usr/local/bin/pg_restore8.3 -d SUP-3067  -h 192.168.1.93 -p 5433 -U
> postgres -L toc_with_parts_commented_out.txt -v production_db.dump.20091016
> ....
> pg_restore8.3: setting owner and privileges for FK CONSTRAINT
> api1_view_test_arguments_test_fkey
> pg_restore8.3: setting owner and privileges for FK CONSTRAINT
> api1_view_test_expected_results_test_fkey
> WARNING: errors ignored on restore: 985
> 
> 
try using pg_restore ...... 2>errors.txt

That would create the errors.txt file, with everything that is writen to
STDERR (ussualy errors and warnings)



view thread (3+ messages)

Message-ID: <4AE9D923.2010802@fmed.uba.ar>
Permalink:  ../4AE9D923.2010802@fmed.uba.ar/
Also on:    postgresql.org/message-id/4AE9D923.2010802@fmed.uba.ar

 · 

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-sql@postgresql.org
  Cc: gherzig@fmed.uba.ar, bryce2@obviously.com
  Subject: Re: pg_restore "WARNING: errors ignored on restore"
  In-Reply-To: <4AE9D923.2010802@fmed.uba.ar>

* 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