Re: Chatter on DROP SOMETHING IF EXISTS

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Chatter on DROP SOMETHING IF EXISTS
Дата
Msg-id 20070207185334.GA8836@fetter.org
обсуждение исходный текст
Ответ на Chatter on DROP SOMETHING IF EXISTS  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Chatter on DROP SOMETHING IF EXISTS
Список pgsql-hackers
On Wed, Feb 07, 2007 at 02:13:48PM +0100, Peter Eisentraut wrote:
> What is the practical purpose of the notices emitted by DROP
> SOMETHING IF EXISTS when the object in fact does not exist?

DROP ... IF EXISTS is guaranteed not to throw an error.  This lets
people write idempotent scripts which run in a transaction :)

Cheers,
D
-- 
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666                             Skype: davidfetter

Remember to vote!


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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: Proposal: TABLE functions
Следующее
От: Richard Troy
Дата:
Сообщение: Re: Proposal: Commit timestamp