Re: Question on STABLE functions limitations - Mailing list pgsql-general

From Tom Lane
Subject Re: Question on STABLE functions limitations
Date
Msg-id 19012.1287411508@sss.pgh.pa.us
Whole thread Raw
In response to Question on STABLE functions limitations  ("Marc Mamin" <M.Mamin@intershop.de>)
List pgsql-general
"Marc Mamin" <M.Mamin@intershop.de> writes:
> I wonder if there are some special cases where STABLE functions should
> be avoided.

> I think for example of functions using set_config or querying the
> advisory locks.

set_config has side-effects and hence should not be done in non-volatile
functions.

            regards, tom lane

pgsql-general by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: How to change pg_trigger query so that it works in 9.0 without pg_trigger.tgisconstraint does not exist error
Next
From: Merlin Moncure
Date:
Subject: Re: Question on STABLE functions limitations