Prevent ALTER USER f RESET ALL from removing the settings that were put there
Alvaro Herrera <alvherre@alvh.no-ip.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +1 −7 |
| src/backend/catalog/pg_db_role_setting.c | modified | +38 −3 |
| src/backend/utils/misc/guc.c | modified | +83 −2 |
| src/include/utils/guc.h | modified | +2 −1 |