Re: Chatter on DROP SOMETHING IF EXISTS

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Chatter on DROP SOMETHING IF EXISTS
Дата
Msg-id 20070215211040.GA19527@nasby.net
обсуждение исходный текст
Ответ на Re: Chatter on DROP SOMETHING IF EXISTS  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Chatter on DROP SOMETHING IF EXISTS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Feb 08, 2007 at 01:54:13PM -0500, Tom Lane wrote:
> 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 TABLE
>     foo=>
> 
> I would be satisfied if the returned command tag were something else,
> maybe "NO OPERATION".

"TABLE blah DID NOT EXIST" might be less confusing...
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: "anyelement2" pseudotype
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fixing insecure security definer functions