There was enough code drift since this patch, that a couple of bugs
authorBruce Momjian <[email protected]>
Mon, 28 Jul 2003 16:22:16 +0000 (16:22 +0000)
committerBruce Momjian <[email protected]>
Mon, 28 Jul 2003 16:22:16 +0000 (16:22 +0000)
materialized.

New items have been added to GucContext and GucSource enums, but of
course they were not added to the corresponding GucContextName[] and
GucSourceName[] arrays in the patch. Here's a new patch to fix the
resulting bugs.

Joe Conway

src/backend/utils/misc/guc.c
src/include/utils/guc.h
src/include/utils/guc_tables.h

index 90a7504c79285ad6a12ba8660aca45a7f2b55568..a35544c50593f8b11b852525ed7b49d4bf13e00c 100644 (file)
@@ -156,7 +156,7 @@ static char *XactIsoLevel_string;
 
 
 /*
- * Used for pg_settings. Keep in sync with config_type enum above
+ * Used for pg_settings. Keep in sync with config_type enum in guc_tables.h
  */
 static char *config_type_name[] = 
 {
@@ -176,6 +176,7 @@ static char *GucContextName[] =
        "sighup",
        "backend",
        "super-user",
+       "userlimit",
        "user"
 };
 
@@ -188,6 +189,7 @@ static char *GucSourceName[] =
        "environment variable",
        "configuration file",
        "command line",
+       "userstart",
        "database",
        "user",
        "client",
index 5dee9fa47db9d61748d67e368b5d27f5b7878e96..ce23eed046b0845b0c49d281f4edfcdafd7e2ccb 100644 (file)
@@ -52,6 +52,8 @@
  * non-super users.
  *
  * USERSET options can be set by anyone any time.
+ *
+ * Keep in sync with GucContextName in guc.c
  */
 typedef enum
 {
index 6e34ffa236999a3d6061b1b13ba0abbfda7acb48..a276959db6326f8dd13f3990ae45ab32bbe28a0c 100644 (file)
@@ -58,6 +58,8 @@ enum config_group
 
 /*
  * GUC supports these types of variables:
+ *
+ * Keep in sync with config_type_name in guc.c
  */
 enum config_type
 {