Re: CREATE OR REPLACE FUNCTION

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE OR REPLACE FUNCTION
Дата
Msg-id 14284.1001173037@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CREATE OR REPLACE FUNCTION  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: CREATE OR REPLACE FUNCTION  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> ... I see no reason to add this capability
> if it requires adding a new toplevel keyword.

That kind of annoys me too, but since the keyword can be made a TokenId,
it won't create any conflicts.  I think the argument of Oracle
compatibility is probably a sufficient reason to do it with this syntax.

> You could hack ALTER FUNCTION to create automatically if it
> doesn't exist,

That's considerably uglier than this alternative, wouldn't you say?
We have no other ALTER commands that work that way.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: CREATE OR REPLACE FUNCTION
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CREATE OR REPLACE FUNCTION