Re: How to set time zone permanently

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to set time zone permanently
Date: 2002-02-20 21:12:15
Message-ID: 200202202112.g1KLCF209499@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com> writes:
> > Where do I & how do I permanently set the time zone?
>
> I think best/only way right now is to set the TZ environment variable
> before starting the postmaster. The TimeZone variable ought to be
> settable from postgresql.conf, but for some reason it's not there now.
>
> BTW, if the system default timezone is not already the way you want it,
> you might consider making it so rather than putting a special hack into
> the Postgres start script. This usually involves creating or changing
> a configuration file somewhere under /etc ...

Actually, I think there are three levels: system timezone, TZ, and PGTZ
environment variables. The first is all processes, the second is all
processes that have TZ set, and PGTZ affects only PostgreSQL and not
other applications.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2002-02-20 21:33:41 Re: pg_dump and pg_dumpall error
Previous Message Gaetano Mendola 2002-02-20 19:52:53 Building binary...