|
5 | 5 | * command, configuration file, and command line options.
|
6 | 6 | * See src/backend/utils/misc/README for more information.
|
7 | 7 | *
|
8 |
| - * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.94 2002/09/10 16:09:02 tgl Exp $ |
| 8 | + * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.95 2002/09/12 14:03:45 tgl Exp $ |
9 | 9 | *
|
10 | 10 | * Copyright 2000 by PostgreSQL Global Development Group
|
11 | 11 | * Written by Peter Eisentraut <peter_e@gmx.net>.
|
@@ -2123,15 +2123,19 @@ flatten_set_variable_args(const char *name, List *args)
|
2123 | 2123 | StringInfoDatabuf;
|
2124 | 2124 | List*l;
|
2125 | 2125 |
|
2126 |
| -/* Fast path if just DEFAULT */ |
| 2126 | +/* |
| 2127 | + * Fast path if just DEFAULT. We do not check the variable name in |
| 2128 | + * this case --- necessary for RESET ALL to work correctly. |
| 2129 | + */ |
2127 | 2130 | if (args==NIL)
|
2128 | 2131 | returnNULL;
|
2129 | 2132 |
|
| 2133 | +/* Else get flags for the variable */ |
2130 | 2134 | record=find_option(name);
|
2131 | 2135 | if (record==NULL)
|
2132 |
| -flags=0;/* default assumptions */ |
2133 |
| -else |
2134 |
| -flags=record->flags; |
| 2136 | +elog(ERROR,"'%s' is not a valid option name",name); |
| 2137 | + |
| 2138 | +flags=record->flags; |
2135 | 2139 |
|
2136 | 2140 | /* Complain if list input and non-list variable */
|
2137 | 2141 | if ((flags&GUC_LIST_INPUT)==0&&
|
|