Re: Units for storage of internal time zone offsets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Units for storage of internal time zone offsets
Date: 2002-07-09 15:18:14
Message-ID: 4546.1026227894@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart <lockhart(at)fourpalms(dot)org> writes:
>> Is there a reason for the restriction to one byte? Offhand I don't
>> recall that we store TZ offsets on disk at all...

> Ah, we don't. Sorry I wasn't clear. This is only for the lookup table we
> use to interpret time zones on *input*. It is contained in
> src/backend/utils/adt/datetime.c

Well, sheesh. Let's widen the byte field to int and store all the
offsets in minutes, or even seconds.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2002-07-09 15:19:09 Re: (A) native Windows port
Previous Message Thomas Lockhart 2002-07-09 15:10:11 Re: Units for storage of internal time zone offsets