Re: why VOLATILE attribute is required?

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Rafal Pietrak *EXTERN*" <rafal(at)zorro(dot)isa-geek(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: why VOLATILE attribute is required?
Date: 2011-09-22 14:37:18
Message-ID: D960CB61B694CF459DCFB4B0128514C2049FCE75@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rafal Pietrak wrote:
> ERROR: ALTER ROLE is not allowed in a non-volatile function
>
> Why???

See http://www.postgresql.org/docs/8.3/static/xfunc-volatility.html :

A STABLE function cannot modify the database [...]

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2011-09-22 14:42:50 Re: limitby without orderby
Previous Message Rafal Pietrak 2011-09-22 14:29:02 Re: why VOLATILE attribute is required?