]> granicus.if.org Git - postgresql/commit
Prevent ALTER USER f RESET ALL from removing the settings that were put there
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Mar 2010 14:44:51 +0000 (14:44 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Mar 2010 14:44:51 +0000 (14:44 +0000)
commit08729b4e8aa3a27bf9b43a2dae6b962405f63222
tree674bf428fa1036b3195877756528719fc1cd9b9e
parent505efe9917043eca815e07cccdbb95366700992f
Prevent ALTER USER f RESET ALL from removing the settings that were put there
by a superuser -- "ALTER USER f RESET setting" already disallows removing such a
setting.

Apply the same treatment to ALTER DATABASE d RESET ALL when run by a database
owner that's not superuser.
src/backend/commands/dbcommands.c
src/backend/commands/user.c
src/backend/utils/misc/guc.c
src/include/utils/guc.h