824
825
/* rule 1 can match eol */
826
#line 78 "guc-file.l"
827
#line 79 "guc-file.l"
827
828
ConfigFileLineno++; return GUC_EOL;
831
#line 79 "guc-file.l"
832
#line 80 "guc-file.l"
832
833
/* eat whitespace */
836
#line 80 "guc-file.l"
837
#line 81 "guc-file.l"
837
838
/* eat comment (.* matches anything until newline) */
841
#line 82 "guc-file.l"
842
#line 83 "guc-file.l"
846
#line 83 "guc-file.l"
847
#line 84 "guc-file.l"
847
848
return GUC_QUALIFIED_ID;
851
#line 84 "guc-file.l"
852
#line 85 "guc-file.l"
852
853
return GUC_STRING;
856
#line 85 "guc-file.l"
857
#line 86 "guc-file.l"
857
858
return GUC_UNQUOTED_STRING;
861
#line 86 "guc-file.l"
862
#line 87 "guc-file.l"
862
863
return GUC_INTEGER;
866
#line 87 "guc-file.l"
867
#line 88 "guc-file.l"
871
#line 88 "guc-file.l"
872
#line 89 "guc-file.l"
872
873
return GUC_EQUALS;
876
#line 90 "guc-file.l"
877
#line 91 "guc-file.l"
877
878
return GUC_ERROR;
881
#line 92 "guc-file.l"
882
#line 93 "guc-file.l"
882
883
YY_FATAL_ERROR( "flex scanner jammed" );
884
#line 885 "guc-file.c"
885
#line 886 "guc-file.c"
885
886
case YY_STATE_EOF(INITIAL):
2017
2017
stack->source = PGC_S_DEFAULT;
2020
/* Now we can re-apply the wired-in default */
2020
/* Now we can re-apply the wired-in default (i.e., the boot_val) */
2021
2021
set_config_option(gconf->name, NULL, context, PGC_S_DEFAULT,
2022
2022
GUC_ACTION_SET, true);
2023
2023
if (context == PGC_SIGHUP)
2030
* Restore any variables determined by environment variables. This
2031
* is a no-op except in the case where one of these had been in the
2032
* config file and is now removed. PGC_S_ENV_VAR will override the
2033
* wired-in default we just applied, but cannot override any other source.
2035
* Keep this list in sync with InitializeGUCOptions()!
2036
* PGPORT can be ignored, because it cannot be changed without restart.
2037
* We assume rlimit hasn't changed, either.
2030
* Restore any variables determined by environment variables or
2031
* dynamically-computed defaults. This is a no-op except in the case
2032
* where one of these had been in the config file and is now removed.
2034
* In particular, we *must not* do this during the postmaster's
2035
* initial loading of the file, since the timezone functions in
2036
* particular should be run only after initialization is complete.
2038
* XXX this is an unmaintainable crock, because we have to know how
2039
* to set (or at least what to call to set) every variable that could
2040
* potentially have PGC_S_DYNAMIC_DEFAULT or PGC_S_ENV_VAR source.
2041
* However, there's no time to redesign it for 9.1.
2039
envvar = getenv("PGDATESTYLE");
2041
set_config_option("datestyle", envvar, PGC_POSTMASTER,
2042
PGC_S_ENV_VAR, GUC_ACTION_SET, true);
2044
envvar = getenv("PGCLIENTENCODING");
2046
set_config_option("client_encoding", envvar, PGC_POSTMASTER,
2047
PGC_S_ENV_VAR, GUC_ACTION_SET, true);
2043
if (context == PGC_SIGHUP)
2045
InitializeGUCOptionsFromEnvironment();
2046
pg_timezone_initialize();
2047
pg_timezone_abbrev_initialize();
2048
/* this selects SQL_ASCII in processes not connected to a database */
2049
SetConfigOption("client_encoding", GetDatabaseEncodingName(),
2050
PGC_BACKEND, PGC_S_DYNAMIC_DEFAULT);
2050
2053
/* If we got here all the options checked out okay, so apply them. */
2051
2054
for (item = head; item; item = item->next)