Re: Default timezone changes in 9.1

From: Robert Treat <rob(at)xzilla(dot)net>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Default timezone changes in 9.1
Date: 2012-12-23 04:08:29
Message-ID: CABV9wwN5QhHjqr7pv+798BZ5XTYYGAHh+kRM2YA1AMuu2sjeTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Dec 22, 2012 at 3:41 AM, Jasen Betts <jasen(at)xnet(dot)co(dot)nz> wrote:
> On 2012-12-16, Terence Ferraro <terencejferraro(at)gmail(dot)com> wrote:
>
>> With the exception of a few parameters (max_connections and the ssl related
>> variables that we enable), the default configuration file (circa 9.0) has
>> worked extremely well across 100+ machines so far over the last two years
>> and counting. However, we are simply deploying these on commodity machines
>> ($300-400 off the shelf). Spec wise such machines have not changed
>> significantly (I suppose the shift away from higher clock speeds to more
>> cores can be thanked for that).
>
> You cam possibly get some of what you want using "SQL" like:
>
> alter database "DB_NAME" set timezone = 'localtime';
>
> You can do the similarly with other connection parameters on a
> per-user or per-database basis too.
>

If the goal is just to use a single config and have tz match the
system, the setting localtime in the postgresql.conf should suffice.
IIRC this is what we've started doing, since we we're bit by this as
well. (I think the first systems we noticed it on were ones where
system was UTC and Postgres was GMT, which was mostly a cosmetic
problem, but it surprised us elsewhere too). It makes me wonder if
there was enough thought put into the backwards compatibility angle of
this; either what the default should be, or to make sure people were
aware of the change.

Robert Treat
play: xzilla.net
work: omniti.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Florian Weimer 2012-12-23 11:56:42 Re: Pipelining INSERTs using libpq
Previous Message Michael Arnold 2012-12-23 02:34:37 Insert Assertion Failed in strcoll_l.c:112