From: trasnaramesh@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12750: issue with pg_restore s exit code when warnings are there
Date: Mon, 09 Feb 2015 07:33:51 +0000
Message-ID: <20150209073351.15321.63830@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 12750
Logged by: Rasna
Email address: trasnaramesh@gmail.com
PostgreSQL version: 9.3.5
Operating system: Linux
Description:
commands:
bin/pg_dump -b -o -Fc -Z 0 -p 5333 -U user template1 -f db.dump
bin/pg_restore -c -h localhost -p 5333 -U user -d template1 db.dump
steps followed:
add new tables to DB and took dump
delete the newly added tables
try restore with dump file
restore exited with code 1 but still tables are restore successfully.
error in pg_restore:
pg_restore: [archiver (db)] could not execute query: err-1: table
"test1" does not exist
Command was: DROP TABLE public.test1;
WARNING: errors ignored on restore: 2
Is this the expected behavior for dump/restore feature with tables
add/delete steps?
Why pg_restore exit code is 1 when warning are there?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: trasnaramesh@gmail.com
Subject: Re: BUG #12750: issue with pg_restore s exit code when warnings are there
In-Reply-To: <20150209073351.15321.63830@wrigleys.postgresql.org>
References: <20150209073351.15321.63830@wrigleys.postgresql.org>
* 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