Tom Lane <t...@sss.pgh.pa.us> wrote:
 
> Those classifications are meant as planner directives; they are
> NOT meant to be bulletproof.  Hanging database integrity
> guarantees on whether a "non volatile" function changes anything
> is entirely unsafe.  To give just one illustration of the
> problems, a nonvolatile function is allowed to call a volatile
> one.
 
Could it work to store a flag in each process to indicate when it is
executing a non-volatile function, and throw an error on any attempt
to call a volatile function or modify the database?
 
-Kevin

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to