Re: When DST occurs

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Justin Clift <aa2(at)bigpond(dot)net(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: When DST occurs
Date: 2001-05-04 21:47:39
Message-ID: m3itjghjlw.fsf@belphigor.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Justin Clift <aa2(at)bigpond(dot)net(dot)au> writes:

> Hi all,
>
> I'm trying to figure out how DST change times will affect a running database?
>
> For example, if I'm running a PostgreSQL 7.1 server through a DST changeover
> period, how does the database handle this?
>
> Apparently linux automatically does some kind of update during the changeover
> period, but does that transfer through to PostgreSQL?

Linux (and Unix in general) and PostgreSQL both store times in UTC,
which is independent of timezones and DST. The C library translates
UTC into a local printable time, taking timezone and DST into account
as needed. So things "just work" and you don't usually have to do
anything special for the DST changeover.

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time... --Dylan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fran Fabrizio 2001-05-04 21:50:59 subtratcing dates
Previous Message Oliver Elphick 2001-05-04 21:38:57 Re: decimal point - european format