Re: More Time Zone fun

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Naz Gassiep <naz(at)mira(dot)net>
Cc: "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: More Time Zone fun
Date: 2007-08-18 05:26:50
Message-ID: 29669.1187414810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Naz Gassiep <naz(at)mira(dot)net> writes:
> ERROR: time zone "Asia/Riyadh87" appears to use leap seconds DETAIL:
> PostgreSQL does not support leap seconds.

> Surely it's a bug to have timezones in the list that result in errors
> being thrown?

Perhaps, but weren't you the person complaining about how slow that view
is to read? If we actually opened each tzinfo file and looked for
leap-second data, it would likely be 10x to 100x slower yet.

> Also, is there a reason that PostgreSQL does not support
> leap seconds?

timestamp/interval arithmetic would be completely unworkable
... especially for future dates where the occurrence of leap seconds
cannot be predicted.

Some googling suggests that the whole concept of leap seconds is falling
out of favor with the people in charge of such things --- it's just as
bad as trying to predict what the politicians will do to daylight
savings time next year :-(

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message novice 2007-08-18 05:35:12 Join query help
Previous Message Naz Gassiep 2007-08-18 05:14:38 Re: More Time Zone fun