diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-03-25 14:45:51 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-03-25 14:45:51 +0000 |
commit | d07f5947058eae0433c0a08e84711b3d32a84f4d (patch) | |
tree | e3d147a06950b53da6422f0bfa652088efb11b63 /src/include | |
parent | 75d4be8ddd259124d3009e3f38185137dcd35943 (diff) | |
download | postgresql-d07f5947058eae0433c0a08e84711b3d32a84f4d.tar.gz postgresql-d07f5947058eae0433c0a08e84711b3d32a84f4d.zip |
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.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/guc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index 18d1dc17dab..883e63403ea 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -7,7 +7,7 @@ * Copyright (c) 2000-2005, PostgreSQL Global Development Group * Written by Peter Eisentraut <peter_e@gmx.net>. * - * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.58.4.2 2009/12/09 21:58:56 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.58.4.3 2010/03/25 14:45:51 alvherre Exp $ *-------------------------------------------------------------------- */ #ifndef GUC_H @@ -206,6 +206,7 @@ extern char *flatten_set_variable_args(const char *name, List *args); extern void ProcessGUCArray(ArrayType *array, GucSource source); extern ArrayType *GUCArrayAdd(ArrayType *array, const char *name, const char *value); extern ArrayType *GUCArrayDelete(ArrayType *array, const char *name); +extern ArrayType *GUCArrayReset(ArrayType *array); #ifdef EXEC_BACKEND extern void write_nondefault_variables(GucContext context); |