Re: Coalesce bug ?

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема Re: Coalesce bug ?
Дата
Msg-id CAPTjJmqrKRbzL7SZ4dvMfMK2tCzd5Ko8VeZH5kCii8HNak5M4w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Coalesce bug ?  ("David Johnston" <polobo@yahoo.com>)
Ответы Re: Coalesce bug ?
Список pgsql-general
On Sat, Dec 22, 2012 at 3:53 AM, David Johnston <polobo@yahoo.com> wrote:
> Chris Angelico wrote, and David dropped the citation (oops!):
>> By the way, why do you declare your functions as "STRICT IMMUTABLE"
>> and "STRICT VOLATILE"?
>
> Is this a question about the layout of the commands spatially?

As I understand it, there are three keywords: VOLATILE, STRICT, and
IMMUTABLE. Putting one of those keywords into the declaration flags
the function accordingly; if none is given, VOLATILE is assumed.

Declaring the function as "STRICT IMMUTABLE" or "STRICT VOLATILE"
seems at best redundant (the word "STRICT" is mere noise), and at
worst confusing (the parser might be interpreting it as "STRICT", not
as the other keyword). Or is there something I'm missing here?

ChrisA


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

Предыдущее
От: Bryan Lee Nuse
Дата:
Сообщение: UNION and pg_restore
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Coalesce bug ?