Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YE00y-0006UM-86 for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jan 2015 18:28:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YE00w-0004zN-HF for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jan 2015 18:28:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YE00o-0004ma-BS for pgsql-bugs@postgresql.org; Wed, 21 Jan 2015 18:28:18 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YE00f-0008N5-9l for pgsql-bugs@postgresql.org; Wed, 21 Jan 2015 18:28:14 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YE00d-00032K-V8; Wed, 21 Jan 2015 13:28:07 -0500 Date: Wed, 21 Jan 2015 13:28:07 -0500 From: Bruce Momjian 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. Message-ID: <20150121182807.GG3885@momjian.us> References: <20150113204830.2505.13416@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150113204830.2505.13416@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 , this value is cluster-wide, so that all sessions will report timestamps consistently. The built-in default is GMT, but that is typically overridden in postgresql.conf; initdb will install a setting there corresponding to its system environment. See for more information. This parameter can only be set in the 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 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