Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlSZo-0001NR-J9 for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2013 00:01:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VlSZn-0006TF-RE for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2013 00:01:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlSZm-0006T5-4h for pgsql-hackers@postgresql.org; Wed, 27 Nov 2013 00:01:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlSZj-00032s-MV for pgsql-hackers@postgresql.org; Wed, 27 Nov 2013 00:01:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rAR01c5P001330; Tue, 26 Nov 2013 19:01:38 -0500 From: Tom Lane To: Dean Rasheed cc: Peter Eisentraut , Pavel Stehule , Robert Haas , Andres Freund , Tomas Vondra , PostgreSQL Hackers Subject: Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist In-reply-to: References: <20131014214421.GE25013@awork2.anarazel.de> <525C6ED3.9090701@fuzzy.cz> <20131014222800.GH25013@awork2.anarazel.de> <3210.1384118907@sss.pgh.pa.us> <20131110221159.GD32665@awork2.anarazel.de> <5459.1384125376@sss.pgh.pa.us> <20131110232355.GG32665@awork2.anarazel.de> <5647.1384125986@sss.pgh.pa.us> <20131110233247.GH32665@awork2.anarazel.de> <5940.1384126931@sss.pgh.pa.us> <20131110235703.GJ32665@awork2.anarazel.de> <9280.1384132385@sss.pgh.pa.us> <528E85B9.2070200@gmx.net> <5294FC63.2090401@gmx.net> Comments: In-reply-to Dean Rasheed message dated "Tue, 26 Nov 2013 23:56:41 +0000" Date: Tue, 26 Nov 2013 19:01:38 -0500 Message-ID: <1329.1385510498@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Dean Rasheed writes: > Actually the IF EXISTS in DROP TABLE now applies to the schema as > well. Unfortunately there is currently no consistency across the > various DROP commands --- some tolerate a non-existent schema, while > others error out. Yeah. I think now that we've had this discussion, we should make them all tolerate a non-existent schema. I'm fine with having that happen over a series of patches rather than all at once though. > Also amongst those that tolerate a non-existent > schema, the resulting notices are not consistent --- some report the > schema-qualified object name, while others just report the local > object name. Less excited about this part, but on the whole I'd vote for the "schema "no_such_schema" does not exist" wording in cases where the schema isn't there. The other way is less specific for no very good reason. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers