Re: Default timezone changes in 9.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Terence Ferraro <terencejferraro(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Default timezone changes in 9.1
Date: 2012-12-16 17:25:13
Message-ID: 16515.1355678713@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> Setting the timezone to 'localtime' seems to work as well, even without
> a patch. I haven't found any documentation about it and I am not
> completely sure about the semantics, but it looks ok on a first glance.

I think on most distros that use the Olson tz database, 'localtime' is
defined by means of adding a symlink in the system timezone directory.
It's going to refer to whatever zone was chosen as the system-wide
default. That would match what the postmaster sees as the system
timezone if you have not set TZ in its environment ... but it would also
match what initdb sees as the system timezone. I'm still not sure what
the OP actually wants to accomplish by moving the time of making the
choice.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Bex 2012-12-16 17:25:32 Re: Authenticate with hash instead of plaintext password?
Previous Message Tom Lane 2012-12-16 17:19:38 Re: Default timezone changes in 9.1