pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pam Wampler <Pam_Wampler@taylorwhite.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to set time zone permanently
Date: Wed, 20 Feb 2002 16:12:15 -0500 (EST)
Message-ID: <200202202112.g1KLCF209499@candle.pha.pa.us> (raw)
In-Reply-To: <412.1014219615@sss.pgh.pa.us>

Tom Lane wrote:
> Pam Wampler <Pam_Wampler@taylorwhite.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@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



view thread (5+ messages)  latest in thread

Message-ID: <200202202112.g1KLCF209499@candle.pha.pa.us>
Permalink:  ../200202202112.g1KLCF209499@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200202202112.g1KLCF209499@candle.pha.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, Pam_Wampler@taylorwhite.com
  Subject: Re: How to set time zone permanently
  In-Reply-To: <200202202112.g1KLCF209499@candle.pha.pa.us>
  References: <412.1014219615@sss.pgh.pa.us> <200202202112.g1KLCF209499@candle.pha.pa.us>

* 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