Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements
Дата
Msg-id
3538.1393693878@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Robins Tharakan <tharakan@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Andres Freund <andres@2ndquadrant.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Abhijit Menon-Sen <ams@2ndQuadrant.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabrizio@timbira.com.br>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Martijn van Oosterhout <kleptog@svana.org>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Karol Trzcionka <karlikt@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Karol Trzcionka <karlikt@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Abhijit Menon-Sen <ams@2ndQuadrant.com>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Abhijit Menon-Sen <ams@2ndQuadrant.com>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Peter Eisentraut <peter_e@gmx.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Robert Haas <robertmhaas@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Stephen Frost <sfrost@snowman.net>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Pavel Stehule <pavel.stehule@gmail.com>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Stephen Frost <sfrost@snowman.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Stephen Frost <sfrost@snowman.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Stephen Frost <sfrost@snowman.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Michael Paquier <michael.paquier@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Stephen Frost <sfrost@snowman.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Robert Haas <robertmhaas@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Heikki Linnakangas <hlinnakangas@vmware.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Marti Raudsepp <marti@juffo.org>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Marko Tiikkaja <marko@joh.to>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Heikki Linnakangas <hlinnakangas@vmware.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Michael Paquier <michael.paquier@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Peter Eisentraut <peter_e@gmx.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Peter Eisentraut <peter_e@gmx.net>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Amit Langote <amitlangote09@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Amit Langote <amitlangote09@gmail.com>
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Tom Dunstan <pgsql@tomd.cc>
Fabrízio de Royes Mello  writes:
> On Sat, Jan 18, 2014 at 11:12 PM, Stephen Frost  wrote:
>> Fabr�zio, can you clarify the use-case for things like CREATE AGGREGATE
>> to have IF NOT EXISTS rather than OR REPLACE, or if there is a reason
>> why both should exist?  Complicating our CREATE options is not something
>> we really wish to do without good reason and we certainly don't want to
>> add something now that we'll wish to remove in another version or two.

> Well I have a scenario with many servers to deploy DDL scripts, and most of
> them we must run without transaction control because some tasks like CREATE
> INDEX CONCURRENTLY, DROP/CREATE DATABASE, CLUSTER, etc.

> When an error occurs the script stops, but the previous commands was
> commited, then we must review the script to comment parts that was already
> executed and then run it again. Until now is not a really trouble, but in
> some cases we must deploy another DDL script that contains a new version of
> some object before we finish to fix the previous version that was in
> production, and if we have CINE for all CREATE objects this task will more
> easy because we just run it again without care if will replace the content
> and do not produce an error.

Why wouldn't COR semantics answer that requirement just as well, if not
better?
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Tom Lane
Дата:
FAQ