mirror of
https://github.com/postgres/postgres.git
synced 2026-02-10 06:13:34 -05:00
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.
39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
/*
|
|
* variable.h
|
|
* Routines for handling specialized SET variables.
|
|
*
|
|
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/commands/variable.h,v 1.30 2007/08/04 01:26:54 tgl Exp $
|
|
*/
|
|
#ifndef VARIABLE_H
|
|
#define VARIABLE_H
|
|
|
|
#include "utils/guc.h"
|
|
|
|
|
|
extern const char *assign_datestyle(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *assign_timezone(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_timezone(void);
|
|
extern const char *assign_log_timezone(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_log_timezone(void);
|
|
extern const char *assign_XactIsoLevel(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_XactIsoLevel(void);
|
|
extern bool assign_random_seed(double value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_random_seed(void);
|
|
extern const char *assign_client_encoding(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *assign_role(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_role(void);
|
|
extern const char *assign_session_authorization(const char *value,
|
|
bool doit, GucSource source);
|
|
extern const char *show_session_authorization(void);
|
|
|
|
#endif /* VARIABLE_H */
|