pg_restore "WARNING: errors ignored on restore"

View: New views
3 Messages — Rating Filter:   Alert me  

pg_restore "WARNING: errors ignored on restore"

by Bryce Nesbitt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


--
Sent via pgsql-sql mailing list (pgsql-sql@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Re: pg_restore "WARNING: errors ignored on restore"

by Tom Lane-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bryce Nesbitt <bryce2@...> writes:
> 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?

All such errors should have been reported on stderr already.
I imagine the chatter from -v is distracting you ... try dropping
that switch.

                        regards, tom lane

--
Sent via pgsql-sql mailing list (pgsql-sql@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Re: pg_restore "WARNING: errors ignored on restore"

by Gerardo Herzig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

--
Sent via pgsql-sql mailing list (pgsql-sql@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql