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. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers