]> 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:45:06 +0000 (14:45 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Mar 2010 14:45:06 +0000 (14:45 +0000)
commite429448f33843f4b9bffe1243efb1158343e267b
treebb7b7fff9f9f5e38c05e40bf6c600b8d4e1ff7d5
parente1eb7c81192bec3735eed3228202b400f31c8010
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