Re: Determining/Setting a server's time zone - Mailing list pgsql-general

From Tom Lane
Subject Re: Determining/Setting a server's time zone
Date
Msg-id 4919.1237851198@sss.pgh.pa.us
Whole thread Raw
In response to Determining/Setting a server's time zone  (Madison Kelly <linux@alteeve.com>)
Responses Re: Determining/Setting a server's time zone  (Madison Kelly <linux@alteeve.com>)
List pgsql-general
Madison Kelly <linux@alteeve.com> writes:
>    How/Where does PostgreSQL set or determine the local time zone?

Well, "show timezone" will tell you what PG is using.  Where it came
from is a bit harder to answer.  The default is to use whatever
zone is current according to the postmaster's startup environment,
and that would depend on some factors you didn't tell us, like
how you're starting the postmaster.  Do your two machines report
the same timezone when you run "date" as a shell command?

The easy solution is to set the value you want in postgresql.conf.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 1- and 2-dimensional indexes on same column: why is the 2d one preferred?
Next
From: Alban Hertroys
Date:
Subject: Re: text column constraint, newbie question