Re: [rfc] new CREATE FUNCTION (and more)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [rfc] new CREATE FUNCTION (and more)
Дата
Msg-id 200011161705.MAA15807@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [rfc] new CREATE FUNCTION (and more)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Marko Kreen <marko@l-t.ee> writes:
> >     This mostly like the current "CREATE FUNCTION .. LANGUAGE 'C'".
> >     Main difference is that the TYPE=0 means the old 'C' interface
> >     and TYPE=1 means 'newC' interface.  Default is 1.
> 
> This improves matters how, exactly?  As far as I can see, this just
> replaces a readable construct with magic numbers, for a net loss in
> readability and no change in functionality.
> 
> I don't have any great love for the names 'C' and 'newC' either, but
> unless we are willing to break backward-compatibility of function
> declarations in 7.1, I think we are stuck with those names or ones
> isomorphic to them.

I am recommending C70 for old functions, and C for current-style
functions.  That way, we can implement C71 if we want for backward
compatibility.  I think making everyone use newC for the current style
is going to be confusing.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: AW: Coping with 'C' vs 'newC' function language namesh
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: [rfc] new CREATE FUNCTION (and more)