Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements
От | Peter Eisentraut |
---|---|
Тема | Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements |
Дата | |
Msg-id | 51B8C561.2000402@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
Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements |
Список | pgsql-hackers |
On 6/12/13 1:29 PM, Fabrízio de Royes Mello wrote: > The attached patch add support to "IF NOT EXISTS" to "CREATE" statements > listed below: > > - CREATE AGGREGATE [ IF NOT EXISTS ] ... > - CREATE CAST [ IF NOT EXISTS ] ... > - CREATE COLLATION [ IF NOT EXISTS ] ... > - CREATE OPERATOR [ IF NOT EXISTS ] ... > - CREATE TEXT SEARCH {PARSER | DICTIONARY | TEMPLATE | CONFIGURATION} [ > IF NOT EXISTS ] ... > - CREATE TYPE [ IF NOT EXISTS ] ... [AS [{ENUM | RANGE}] (...)] I'm wondering where "IF NOT EXISTS" and "OR REPLACE" will meet. For example, why doesn't your list include CREATE FUNCTION? I have on my personal todo list to add "OR REPLACE" support to CREATE AGGREGATE and CREATE OPERATOR. They are kind of like functions, after all, and CREATE OR REPLACE FUNCTION is clearly widely useful. I suppose both could be useful, but if we're going to make sweeping changes, perhaps that should be clarified. Btw., I also want REPLACE BUT DO NOT CREATE.
В списке pgsql-hackers по дате отправления: