Re: Views- Advantages and Disadvantages

From: Jorge Godoy <jgodoy(at)gmail(dot)com>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Views- Advantages and Disadvantages
Date: 2007-05-11 03:32:39
Message-ID: 87vef0c9wo.fsf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> writes:

> On 05/10/07 21:24, Tom Lane wrote:
>> "Leif B. Kristensen" <leif(at)solumslekt(dot)org> writes:
>>> 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?
>>
>> My instinctive CS-major reply to that is "only if you've found a
>> solution to the halting problem". However, it's possible that we could
>> detect this case for a useful subset of real-world functions ... not
>> sure offhand what could be covered.
>
> If there are no INSERT, UPDATE or DELETE statements in the function?

And all functions called from inside the one being run as well
(recursive condition, of course)...

--
Jorge Godoy <jgodoy(at)gmail(dot)com>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-05-11 04:08:10 Re: Views- Advantages and Disadvantages
Previous Message Tom Lane 2007-05-11 03:21:30 Re: Views- Advantages and Disadvantages