mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Switch over to using the src/timezone functions for formatting timestamps
displayed in the postmaster log. This avoids Windows-specific problems with localized time zone names that are in the wrong encoding, and generally seems like a good idea to forestall other potential platform-dependent issues. To preserve the existing behavior that all backends will log in the same time zone, create a new GUC variable log_timezone that can only be changed on a system-wide basis, and reference log-related calculations to that zone instead of the TimeZone variable. This fixes the issue reported by Hiroshi Saito that timestamps printed by xlog.c startup could be improperly localized on Windows. We still need a simpler patch for that problem in the back branches, however.
This commit is contained in:
@ -347,6 +347,8 @@
|
||||
#log_temp_files = -1 # Log temporary files equal or larger
|
||||
# than specified number of kilobytes.
|
||||
# -1 disables; 0 logs all temp files
|
||||
#log_timezone = unknown # actually, defaults to TZ
|
||||
# environment setting
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# RUNTIME STATISTICS
|
||||
|
Reference in New Issue
Block a user