pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist
Date: Sun, 10 Nov 2013 20:13:05 -0500
Message-ID: <9280.1384132385@sss.pgh.pa.us> (raw)
In-Reply-To: <20131110235703.GJ32665@awork2.anarazel.de>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@2ndquadrant.com> writes:
> Turns out that's bogus - ALTER TABLE has two levels of NOT EXISTS.

> Maybe we should just do the same for DROP TRIGGER?

> DROP TRIGGER [ IF EXISTS ] name ON table_name [ IF EXISTS ] [ CASCADE | RESTRICT ]

Works for me.

			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



view thread (83+ messages)  latest in thread

Message-ID: <9280.1384132385@sss.pgh.pa.us>
Permalink:  ../9280.1384132385@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9280.1384132385@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, 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: <9280.1384132385@sss.pgh.pa.us>
  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>

* 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