Rafal Pietrak <rafal@xxxxxxxxxxxxxxxxxx> writes: > but I get: > ERROR: ALTER ROLE is not allowed in a non-volatile function > Why??? Because non-volatile means, among other things, "this function has no side effects". regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general