From: Pam Wampler <Pam_Wampler@taylorwhite.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Pam Wampler <Pam_Wampler@taylorwhite.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to set time zone permanently
Date: Wed, 20 Feb 2002 10:50:27 -0500
Message-ID: <2E4528861499D41199D200A0C9B15BC0012F46A8@taylorwhite.com> (raw)
Thanks Tom That worked !!! I added /etc/TIMEZONE & put TZ=EST export TZ in
that file
then in /etc/profile I added
#prw added 2/20/2002 for timezone
# Set the TIMEZONE
if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
then logged out as postgres user & back in & stopped & restarted using
pg_ctl
and did show time zone & it said EST
thanks & thanks to this wonderful messaging -- you guys are terrific to help
out like this
Pam
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, February 20, 2002 10:40 AM
To: Pam Wampler
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] How to set time zone permanently
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 ...
regards, tom lane
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: Pam_Wampler@taylorwhite.com, tgl@sss.pgh.pa.us
Subject: Re: How to set time zone permanently
In-Reply-To: <2E4528861499D41199D200A0C9B15BC0012F46A8@taylorwhite.com>
References: <2E4528861499D41199D200A0C9B15BC0012F46A8@taylorwhite.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