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:46:06 +0000 (14:46 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Mar 2010 14:46:06 +0000 (14:46 +0000)
commitb60e3ddc2e911e57af6ac5b0f2cfa7dd58bf5006
treeaa2a1a919e3fb7e243c9551d405f3cece1bffd0e
parent26ef5e9b2a6e3b91f0e42689d150c53491fcd4fc
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