Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Tomas Vondra <tv(at)fuzzy(dot)cz>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist
Date: 2013-11-19 17:27:41
Message-ID: CA+Tgmoa4g3To_K+K-6oinXzpZHTGttkFC1kwopink90+umHUQQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Tue, Nov 19, 2013 at 3:53 AM, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> wrote:
> 1). Keep the existing syntax:
>
> DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ];
>
> but make it tolerate a non-existent table when "IF EXISTS" is specified.

I don't love this option, but I like it better than the other proposals.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-11-19 17:52:11 Re: BUG #8605: Regular expression lazy quantification issue
Previous Message j.rejda 2013-11-19 15:35:52 BUG #8606: Materialized View WITH NO DATA bug

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-11-19 17:29:40 Re: additional json functionality
Previous Message Dimitri Fontaine 2013-11-19 17:27:33 Re: pre-commit triggers