Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VuA9r-00005x-DY for pgsql-admin@arkaria.postgresql.org; Sat, 21 Dec 2013 00:11:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VuA9q-0005yj-TL for pgsql-admin@arkaria.postgresql.org; Sat, 21 Dec 2013 00:11:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VuA9p-0005xA-Kb for pgsql-admin@postgresql.org; Sat, 21 Dec 2013 00:11:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VuA9n-0008TJ-BU for pgsql-admin@postgresql.org; Sat, 21 Dec 2013 00:11:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rBL0B1oJ025617; Fri, 20 Dec 2013 19:11:01 -0500 From: Tom Lane To: Deron cc: pgsql-admin@postgresql.org Subject: Re: Timezone from PG8 to PG9 In-reply-to: References: Comments: In-reply-to Deron message dated "Fri, 20 Dec 2013 14:29:13 -0800" Date: Fri, 20 Dec 2013 19:11:01 -0500 Message-ID: <25616.1387584661@sss.pgh.pa.us> X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Deron writes: > Hello we were upgrading a test system from PG8.3.6 to PG 9.3 and it appears > as though the timezone is not set on the new PG9.3. I should say that we > never did set the timezone for PG8, but somehow the PG server knew the > 'localtime' of the system: > show timezone; > TimeZone > ------------ > US/Eastern > (1 row) > However, after upgrading to PG9: > show timezone; > TimeZone > ---------- > GMT > (1 row) > We saw the same for US/Pacific zone as well. > We do set /etc/localtime for the local timezone of the box. We can > configure this in the postgresql.conf file. It does appear as though PG9 > server reads /etc/localtime on startup, but it is not set. IIRC, we moved the determination of the default timezone into initdb somewhere along the line; so what matters now is the system environment initdb saw, not what the server sees on start. If you don't like what you're getting, change it in postgresql.conf. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin