Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B58FC10DCD83 for ; Wed, 9 Nov 2011 11:29:10 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 11217-01 for ; Wed, 9 Nov 2011 15:29:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from polaris.pinpointresearch.com (cerberus.pinpointresearch.com [66.7.238.130]) by mail.postgresql.org (Postfix) with ESMTP id 7042910DCD85 for ; Wed, 9 Nov 2011 11:29:01 -0400 (AST) Received: from betelgeuse.pinpointresearch.com (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 0D944E00EC84; Wed, 9 Nov 2011 07:29:01 -0800 (PST) Message-ID: <4EBA9C3D.9030701@pinpointresearch.com> Date: Wed, 09 Nov 2011 07:29:01 -0800 From: Steve Crawford User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 MIME-Version: 1.0 To: Geoffrey Myers CC: pgsql-admin@postgresql.org Subject: Re: setting timezone References: <4EBA7BCC.2030704@serioustechnology.com> In-Reply-To: <4EBA7BCC.2030704@serioustechnology.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/28 X-Sequence-Number: 38622 On 11/09/2011 05:10 AM, Geoffrey Myers wrote: > We are moving a number of databases to new hardware. Some of these > machines have the timezone set in the database differently then the > actual location of the machine as they are access from a different > timezone. We were surprised to note that when we dump the database > and reloaded it on the new machine, it did not retain the timezone > setting. > > Is there a way to retain this information from the original database > when reloading? > > Thanks. > Time-zone setting is an attribute of the server configuration, not of the data contained in the database. Unless overidden by the timezone setting in postgresql.conf, PostgreSQL will use the server's time zone environment setting. You can specify a default time-zone for PostgreSQL independent of the server's environment by setting "timezone" explicitly in postgresql.conf. Clients can override the default server setting with "SET TIMEZONE TO ...;" which is useful when a single server is supporting users across many time zones. Cheers, Steve