Re: create language ... if not exists

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: create language ... if not exists
Дата
Msg-id 47EE3F6C.1080908@dunslane.net
обсуждение исходный текст
Ответ на Re: create language ... if not exists  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: create language ... if not exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches

Heikki Linnakangas wrote:
> Andreas 'ads' Scherbaum wrote:
>> The attached patch for HEAD extends the CREATE LANGUAGE statement by an
>> IF NOT EXISTS option which in effect changes the raised error into a
>> notice.
>>
>> Before i continue working on this patch i would like to know if this
>> extension has a chance to go into PG and what other changes i should
>> apply (beside the missing documentation).
>
> The way we've solved this problem for other CREATE commands is to add
> "OR REPLACE" option, instead of "IF NOT EXISTS". We should do the same
> here.
>
>

My recollection is that we only do that where we need to for reasons of
dependency. Not sure that applies here.

cheers

andrew

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

Предыдущее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: [HACKERS] Avahi support for Postgresql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: create language ... if not exists