pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: autarch@urth.org
To: pgsql-bugs@postgresql.org
Subject: BUG #7873: pg_restore --clean tries to drop tables that don't exist
Date: Wed, 13 Feb 2013 20:22:43 +0000
Message-ID: <E1U5iqp-0000nA-Uh@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:      7873
Logged by:          Dave Rolsky
Email address:      autarch@urth.org
PostgreSQL version: 9.2.3
Operating system:   Linux
Description:        

When you pass the --clean option to pg_restore it tries to drop tables
without checking if they exist. This results in lots of error output. If
you're running pg_restore via an automated process it's very hard to
distinguish between these "ok" errors and real errors.

It should be using "DROP TABLE IF EXISTS" and the equivalent for
constraints.



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



view thread (83+ messages)  latest in thread

Message-ID: <E1U5iqp-0000nA-Uh@wrigleys.postgresql.org>
Permalink:  ../E1U5iqp-0000nA-Uh@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1U5iqp-0000nA-Uh@wrigleys.postgresql.org

 · 

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 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: autarch@urth.org
  Subject: Re: BUG #7873: pg_restore --clean tries to drop tables that don't exist
  In-Reply-To: <E1U5iqp-0000nA-Uh@wrigleys.postgresql.org>
  References: <E1U5iqp-0000nA-Uh@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