Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U5jHP-0007Sb-0n for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Feb 2013 20:50:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U5jHO-0007uB-GG for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Feb 2013 20:50:10 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U5iqs-0000zX-Jr for pgsql-bugs@postgresql.org; Wed, 13 Feb 2013 20:22:46 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U5iqr-00045Y-BI for pgsql-bugs@postgresql.org; Wed, 13 Feb 2013 20:22:45 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U5iqq-0005c8-5q for pgsql-bugs@postgresql.org; Wed, 13 Feb 2013 20:22:45 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U5iqp-0000nA-Uh for pgsql-bugs@postgresql.org; Wed, 13 Feb 2013 20:22:43 +0000 Date: Wed, 13 Feb 2013 20:22:43 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7873: pg_restore --clean tries to drop tables that don't exist To: pgsql-bugs@postgresql.org From: autarch@urth.org X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs