Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (8.11.6/8.11.4) with ESMTP id g1KLCUF20933 for ; Wed, 20 Feb 2002 16:12:31 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g1KLCF209499; Wed, 20 Feb 2002 16:12:15 -0500 (EST) From: Bruce Momjian Message-Id: <200202202112.g1KLCF209499@candle.pha.pa.us> Subject: Re: How to set time zone permanently In-Reply-To: <412.1014219615@sss.pgh.pa.us> To: Tom Lane Date: Wed, 20 Feb 2002 16:12:15 -0500 (EST) CC: Pam Wampler , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL96 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200202/245 X-Sequence-Number: 3398 Tom Lane wrote: > Pam Wampler 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@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026