Re: Views- Advantages and Disadvantages - Mailing list pgsql-general

From Leif B. Kristensen
Subject Re: Views- Advantages and Disadvantages
Date
Msg-id 200705102251.33462.leif@solumslekt.org
Whole thread Raw
In response to Re: Views- Advantages and Disadvantages  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Views- Advantages and Disadvantages
List pgsql-general
On Thursday 10. May 2007 21:21, Tom Lane wrote:

>"Leif B. Kristensen" <leif@solumslekt.org> writes:

>> I haven't pondered the subtleties of 'stable', 'immutable' or
>> 'volatile' yet, but rather reckoned that the default would do.
>
>Yeah, I was against this particular change actually, because I
> expected that it would cause more problems for people who hadn't paid
> close attention to this point than it'd fix for those trying to do
> cute things.
>
>> Here are the function definitions:

>AFAICS you ought to mark both of those STABLE, since they use but
> don't change database data.

Tom,
thanks for your explanation. As always, it is lucid and to the point.

Would it be reasonable to suggest that later versions of PostgreSQL
could examine if a function changes data, and quietly marks a function
as 'stable' if it doesn't?
--
Leif Biberg Kristensen | Registered Linux User #338009
http://solumslekt.org/ | Cruising with Gentoo/KDE
My Jazz Jukebox: http://www.last.fm/user/leifbk/

pgsql-general by date:

Previous
From: Ron St-Pierre
Date:
Subject: Re: Pattern Matching - Range of Letters
Next
From: novnov
Date:
Subject: Windows installation; why is PL/python shown but disabled?