Re: Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans?
Date
Msg-id 28874.1219242200@sss.pgh.pa.us
Whole thread Raw
In response to Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans?  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> Hm, shouldn't this query notice that random() is volatile and not make the
> subquery an initplan?

We've never done that in the past; in fact I recall seeing people using
subselects deliberately to hide volatility.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch: plan invalidation vs stored procedures
Next
From: Tom Lane
Date:
Subject: Re: make dist does not work in VPATH