pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: eantonini@eidoscode.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12537: It is not possible to configure postgres to use same timezone of the server.
Date: Wed, 21 Jan 2015 13:28:07 -0500
Message-ID: <20150121182807.GG3885@momjian.us> (raw)
In-Reply-To: <20150113204830.2505.13416@wrigleys.postgresql.org>
References: <20150113204830.2505.13416@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, Jan 13, 2015 at 08:48:30PM +0000, eantonini@eidoscode.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      12537
> Logged by:          Endrigo Antonini
> Email address:      eantonini@eidoscode.com
> PostgreSQL version: 9.3.5
> Operating system:   CentOS 6.5
> Description:        
> 
> It is not possible to configure postgresql server to use the same timezone
> of the server. It is necessary that the postgres use the same timezone as
> the server.
> Today, each time I change the timezone of the server, I have to change the
> timezone the configuration file of the postgresql. It's necessary to be
> possible to configure it to use servers timezone.

According to the docs, there is no way to have log_timezone default to
the OS timezone:

        Sets the time zone used for timestamps written in the server log.
        Unlike <xref linkend="guc-timezone">, this value is cluster-wide,
        so that all sessions will report timestamps consistently.
        The built-in default is <literal>GMT</>, but that is typically
        overridden in <filename>postgresql.conf</>; <application>initdb</>
        will install a setting there corresponding to its system environment.
        See <xref linkend="datatype-timezones"> for more information.
        This parameter can only be set in the <filename>postgresql.conf</>
        file or on the server command line.

I suppose you could modify the Postgres server start script to set
log_timezone based on some OS setting though.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <20150121182807.GG3885@momjian.us>
Permalink:  ../20150121182807.GG3885@momjian.us/
Also on:    postgresql.org/message-id/20150121182807.GG3885@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, eantonini@eidoscode.com
  Subject: Re: BUG #12537: It is not possible to configure postgres to use same timezone of the server.
  In-Reply-To: <20150121182807.GG3885@momjian.us>
  References: <20150113204830.2505.13416@wrigleys.postgresql.org> <20150121182807.GG3885@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox