Re: Chatter on DROP SOMETHING IF EXISTS - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Chatter on DROP SOMETHING IF EXISTS
Date
Msg-id 9340.1171897052@sss.pgh.pa.us
Whole thread Raw
In response to Re: Chatter on DROP SOMETHING IF EXISTS  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Chatter on DROP SOMETHING IF EXISTS
Re: Chatter on DROP SOMETHING IF EXISTS
Re: Chatter on DROP SOMETHING IF EXISTS
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Am Montag, 19. Februar 2007 13:12 schrieb Alvaro Herrera:
>> I don't understand -- what problem you got with "NO OPERATION"?  It
>> seemed a sound idea to me.

> It seems nonorthogonal.  What if only some of the tables you mentioned did not 
> exist?  Do you get "SOME OPERATION"?

I'd say you get DROP TABLE as long as at least one table was dropped.

> There are also other cases where commands don't have an effect but we don't 
> explicitly point that out.

The precedent that I'm thinking about is that the command tag for COMMIT
varies depending on what it actually did.

regression=# begin;
BEGIN
regression=# select 1/0;
ERROR:  division by zero
regression=# commit;
ROLLBACK
regression=#
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: New feature request: FlashBack Query
Next
From: Oleg Bartunov
Date:
Subject: Re: n-gram search function