pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist
Date: Thu, 21 Nov 2013 23:16:31 +0100
Message-ID: <20131121221631.GH27838@alap2.anarazel.de> (raw)
In-Reply-To: <528E85B9.2070200@gmx.net>
References: <20131110233247.GH32665@awork2.anarazel.de>
	<5940.1384126931@sss.pgh.pa.us>
	<20131110235703.GJ32665@awork2.anarazel.de>
	<9280.1384132385@sss.pgh.pa.us>
	<CAFj8pRAt_Dp0n0yecmpiPyYeMHT8mcaPNe+UsLoGgd20ZXKY=w@mail.gmail.com>
	<CAFj8pRBQOC4LZmYenGtpZAS=Vt+YTbc8s1UQXTEtcNmVegOv5g@mail.gmail.com>
	<CAEZATCXCOZDREmkjZtu4x5xFZ7rSZB_WtTBSaUH2fm8ocoqCKw@mail.gmail.com>
	<CA+Tgmoa4g3To_K+K-6oinXzpZHTGttkFC1kwopink90+umHUQQ@mail.gmail.com>
	<CAFj8pRBtY8ayyVYKLhSFJHL68-QdDJxFAFQ_Cm7H+3AN663RnQ@mail.gmail.com>
	<528E85B9.2070200@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (83+ messages)  latest in thread

Message-ID: <20131121221631.GH27838@alap2.anarazel.de>
Permalink:  ../20131121221631.GH27838@alap2.anarazel.de/
Also on:    postgresql.org/message-id/20131121221631.GH27838@alap2.anarazel.de

 · 

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: andres@2ndquadrant.com, peter_e@gmx.net, pavel.stehule@gmail.com, robertmhaas@gmail.com, dean.a.rasheed@gmail.com, tgl@sss.pgh.pa.us, tv@fuzzy.cz, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist
  In-Reply-To: <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> <CAFj8pRAt_Dp0n0yecmpiPyYeMHT8mcaPNe+UsLoGgd20ZXKY=w@mail.gmail.com> <CAFj8pRBQOC4LZmYenGtpZAS=Vt+YTbc8s1UQXTEtcNmVegOv5g@mail.gmail.com> <CAEZATCXCOZDREmkjZtu4x5xFZ7rSZB_WtTBSaUH2fm8ocoqCKw@mail.gmail.com> <CA+Tgmoa4g3To_K+K-6oinXzpZHTGttkFC1kwopink90+umHUQQ@mail.gmail.com> <CAFj8pRBtY8ayyVYKLhSFJHL68-QdDJxFAFQ_Cm7H+3AN663RnQ@mail.gmail.com> <528E85B9.2070200@gmx.net> <20131121221631.GH27838@alap2.anarazel.de>

* 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