Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjcYB-0000mC-BM for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2013 22:16:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VjcYA-0005oI-Qp for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2013 22:16:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjcY9-0005mZ-2o for pgsql-hackers@postgresql.org; Thu, 21 Nov 2013 22:16:37 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjcY6-0005Nh-5v for pgsql-hackers@postgresql.org; Thu, 21 Nov 2013 22:16:36 +0000 Received: from intern.anarazel.de (unknown [88.128.80.7]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 894854E8003; Thu, 21 Nov 2013 23:16:33 +0100 (CET) Date: Thu, 21 Nov 2013 23:16:31 +0100 From: Andres Freund To: Peter Eisentraut Cc: Pavel Stehule , Robert Haas , Dean Rasheed , Tom Lane , Tomas Vondra , PostgreSQL Hackers Subject: Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist Message-ID: <20131121221631.GH27838@alap2.anarazel.de> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <528E85B9.2070200@gmx.net> X-Pg-Spam-Score: -1.8 (-) 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 On 2013-11-21 17:14:17 -0500, Peter Eisentraut wrote: > On 11/21/13, 2:35 AM, Pavel Stehule wrote: > > I am feeling, so almost all people prefer > > > > DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]; > > > > Can we live with it? > > Fine with me. > > I think it helps if you consider IF EXISTS an attribute of the command, > not an attribute of the command parameters. > > Now we should be aware that this sort of sets a precedent for ALTER > TABLE IF EXISTS ... DROP ANYTHING ... and similar composite commands. That already has 2 independent IF EXISTS, so I think the precedence argument goes the other way round. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers