Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2561D2FFE6 for ; Wed, 9 Nov 2011 15:53: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 15720-02 for ; Wed, 9 Nov 2011 19:52:54 +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 08AEA2FFE5 for ; Wed, 9 Nov 2011 15:52:53 -0400 (AST) Received: from betelgeuse.pinpointresearch.com (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 7395AE00EC84; Wed, 9 Nov 2011 11:52:52 -0800 (PST) Message-ID: <4EBADA14.3050608@pinpointresearch.com> Date: Wed, 09 Nov 2011 11:52:52 -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: Tom Lane , "pgsql-admin@postgresql.org Admin" Subject: Re: setting timezone References: <4EBA7BCC.2030704@serioustechnology.com> <4EBA9C3D.9030701@pinpointresearch.com> <15278.1320857260@sss.pgh.pa.us> <4EBAD412.4060705@serioustechnology.com> <4EBAD75C.8030501@serioustechnology.com> In-Reply-To: <4EBAD75C.8030501@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/37 X-Sequence-Number: 38631 On 11/09/2011 11:41 AM, Geoffrey Myers wrote: > Geoffrey Myers wrote: >> Tom Lane wrote: >>> Steve Crawford writes: >>>> On 11/09/2011 05:10 AM, Geoffrey Myers wrote: >>>>> Is there a way to retain this information from the original >>>>> database when reloading? >>> >>>> Time-zone setting is an attribute of the server configuration, not >>>> of the data contained in the database. >>> >>> In particular, pg_dump doesn't know anything about postgresql.conf. >>> It's up to you to copy the server's configuration files. >>> >>> regards, tom lane >> >> Thanks Tom, seems we were not setting it in the postgresql.conf file. > > What about the situation where you have two databases in the same > cluster that need different timezones? I'm assuming I would have to > rely on setting it in each database, rather in the postgresql.conf file. > >> > ALTER DATABASE foo SET TIMEZONE... Cheers, Steve