Re: Chatter on DROP SOMETHING IF EXISTS

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Chatter on DROP SOMETHING IF EXISTS
Дата
Msg-id 8075.1170960853@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Chatter on DROP SOMETHING IF EXISTS  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Chatter on DROP SOMETHING IF EXISTS  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I'm honestly looking for some practical use of this.  We have debated 
> other NOTICE messages over the years, but they at least tell you 
> something you can use after the command.

The objection I had to the original patch (which didn't return a notice)
was that this seemed actively misleading:
foo=> DROP TABLE IF EXISTS not_there;DROP TABLEfoo=>

I would be satisfied if the returned command tag were something else,
maybe "NO OPERATION".
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marc Munro
Дата:
Сообщение: Re: referential Integrity and SHARE locks
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball