Re: Suggestions please: names for function cachabilityattributes

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Suggestions please: names for function cachabilityattributes
Дата
Msg-id Pine.LNX.4.30.0204130222420.847-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Suggestions please: names for function cachabilityattributes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Suggestions please: names for function cachabilityattributes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

> Peter Eisentraut <peter_e@gmx.net> writes:
> > Tom Lane writes:
> >> case 1: "immutable"
> >> case 2: "mutable", or perhaps "stable"
> >> case 3: "volatile"
>
> > Since they've changed anyway, how about dropping the silly "is" in front
> > of the names?
>
> "volatile" would conflict with a C keyword.  Possibly we could get away
> with this at the SQL level, but I was worried...

In general, I was thinking about migrating the CREATE FUNCTION syntax more
into consistency with other commmands and with the SQL standard.
Basically I'd like to write
   CREATE FUNCTION name (args, ...) RETURNS type     AS '...'     LANGUAGE foo     STATIC     IMPLICIT CAST

(where everything after RETURNS can be in random order).

OK, so the key words are not the same as SQL, but it looks a lot
friendlier this way.  We're already migrating CREATE DATABASE, I think,
and the names of the options have changed, too, so this might be a good
time.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: RFC: Restructuring pg_aggregate
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: 7.3 schedule