Re: setting timezone

From: Geoffrey Myers <lists(at)serioustechnology(dot)com>
To: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-admin(at)postgresql(dot)org Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: setting timezone
Date: 2011-11-10 16:18:22
Message-ID: 4EBBF94E.4080401@serioustechnology.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Steve Crawford wrote:
> On 11/09/2011 11:41 AM, Geoffrey Myers wrote:
>> Geoffrey Myers wrote:
>>> Tom Lane wrote:
>>>> Steve Crawford <scrawford(at)pinpointresearch(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Craig Ringer 2011-11-11 02:54:10 Re: error log, tablespace, wal files
Previous Message Kevin Grittner 2011-11-10 16:02:02 Re: lost tablespace