pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Geoffrey Myers <lists@serioustechnology.com>
To: Steve Crawford <scrawford@pinpointresearch.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: setting timezone
Date: Thu, 10 Nov 2011 11:18:22 -0500
Message-ID: <4EBBF94E.4080401@serioustechnology.com> (raw)
In-Reply-To: <4EBADA14.3050608@pinpointresearch.com>
References: <4EBA7BCC.2030704@serioustechnology.com>
	<4EBA9C3D.9030701@pinpointresearch.com>
	<15278.1320857260@sss.pgh.pa.us>
	<4EBAD412.4060705@serioustechnology.com>
	<4EBAD75C.8030501@serioustechnology.com>
	<4EBADA14.3050608@pinpointresearch.com>

Steve Crawford wrote:
> On 11/09/2011 11:41 AM, Geoffrey Myers wrote:
>> Geoffrey Myers wrote:
>>> Tom Lane wrote:
>>>> Steve Crawford <scrawford@pinpointresearch.com> 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...

As I expected, thanks.

> 
> 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



view thread (6+ messages)

Message-ID: <4EBBF94E.4080401@serioustechnology.com>
Permalink:  ../4EBBF94E.4080401@serioustechnology.com/
Also on:    postgresql.org/message-id/4EBBF94E.4080401@serioustechnology.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: lists@serioustechnology.com, scrawford@pinpointresearch.com, tgl@sss.pgh.pa.us
  Subject: Re: setting timezone
  In-Reply-To: <4EBBF94E.4080401@serioustechnology.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox