Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 42E955A1581 for ; Wed, 9 Nov 2011 15:27:01 -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 98245-02 for ; Wed, 9 Nov 2011 19:26:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from centosvm.serioustechnology.com (99-39-100-157.lightspeed.tukrga.sbcglobal.net [99.39.100.157]) by mail.postgresql.org (Postfix) with ESMTP id BB951360572 for ; Wed, 9 Nov 2011 15:23:31 -0400 (AST) Received: from centosvm.serioustechnology.com (centosvm [127.0.0.1]) by centosvm.serioustechnology.com (8.13.8/8.13.8) with ESMTP id pA9JNkR9011092; Wed, 9 Nov 2011 14:23:47 -0500 Message-ID: <4EBAD341.6040006@serioustechnology.com> Date: Wed, 09 Nov 2011 14:23:45 -0500 From: Geoffrey Myers User-Agent: Thunderbird 2.0.0.24 (X11/20110928) MIME-Version: 1.0 To: Steve Crawford CC: Geoffrey Myers , pgsql-admin@postgresql.org Subject: Re: setting timezone References: <4EBA7BCC.2030704@serioustechnology.com> <4EBA9C3D.9030701@pinpointresearch.com> In-Reply-To: <4EBA9C3D.9030701@pinpointresearch.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=-0.918 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_DYNAMIC=0.982 X-Spam-Level: X-Archive-Number: 201111/36 X-Sequence-Number: 38630 Steve Crawford wrote: > 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. Thanks, that's just what I needed. > > Cheers, > Steve > > -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson