From: | Chris Angelico <rosuav(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Coalesce bug ? |
Date: | 2012-12-21 22:22:59 |
Message-ID: | CAPTjJmqrKRbzL7SZ4dvMfMK2tCzd5Ko8VeZH5kCii8HNak5M4w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, Dec 22, 2012 at 3:53 AM, David Johnston <polobo(at)yahoo(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2012-12-21 22:31:06 | Re: Coalesce bug ? |
Previous Message | Jose Martinez | 2012-12-21 21:23:36 | Simple Query Very Slow |