mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Simplify handling of the timezone GUC by making initdb choose the default.
We were doing some amazingly complicated things in order to avoid running the very expensive identify_system_timezone() procedure during GUC initialization. But there is an obvious fix for that, which is to do it once during initdb and have initdb install the system-specific default into postgresql.conf, as it already does for most other GUC variables that need system-environment-dependent defaults. This means that the timezone (and log_timezone) settings no longer have any magic behavior in the server. Per discussion.
This commit is contained in:
@@ -292,7 +292,6 @@ ProcessConfigFile(GucContext context)
|
||||
if (context == PGC_SIGHUP)
|
||||
{
|
||||
InitializeGUCOptionsFromEnvironment();
|
||||
pg_timezone_initialize();
|
||||
pg_timezone_abbrev_initialize();
|
||||
/* this selects SQL_ASCII in processes not connected to a database */
|
||||
SetConfigOption("client_encoding", GetDatabaseEncodingName(),
|
||||
|
||||
Reference in New Issue
Block a user