Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    ca4af308
    Simplify handling of the timezone GUC by making initdb choose the default. · ca4af308
    Tom Lane authored
    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.
    ca4af308
    History
    Simplify handling of the timezone GUC by making initdb choose the default.
    Tom Lane authored
    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.