From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | 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-11 21:19:17 |
Message-ID: | CAFj8pRCGfXOOsnwpL5vaYRW11XdwHw1KXRJ80uTdj3GPNLW4kg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
2013/11/11 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
>
>
>
> 2013/11/11 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>
>> Andres Freund <andres(at)2ndquadrant(dot)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 ]
>>
>
This syntax is not consistent with other IF EXISTS.
should be (IF EXISTS is before name always)
DROP TRIGGER [ IF EXISTS ] name ON [ IF EXISTS ] table_name [ CASCADE |
RESTRICT ]
What do you think about?
Regards
Pavel
>
>> Works for me.
>>
>
> for me too
>
> tomorrow I'll prepare patch
>
> Regards
>
> Pavel
>
>
>>
>> regards, tom lane
>>
>>
>> --
>> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-hackers
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | noloader | 2013-11-12 06:41:15 | BUG #8590: unlimit_core_size failed in `make check`. |
Previous Message | Jeffrey Walton | 2013-11-11 21:04:52 | Re: BUG #8588: Need work arounds for Apple unaligned access |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2013-11-11 21:34:58 | Re: alter_table regression test problem |
Previous Message | Robert Haas | 2013-11-11 21:09:55 | Re: alter_table regression test problem |