Re: Redhat 7.3 time manipulation bug - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Redhat 7.3 time manipulation bug
Date
Msg-id 3CEECE27.37A5B73E@fourpalms.org
Whole thread Raw
In response to Re: Redhat 7.3 time manipulation bug  (cbbrowne@cbbrowne.com)
Responses Re: Redhat 7.3 time manipulation bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
...
> Well, this does sound a bit more involved than I was envisioning. There
> are a few items wrt SRFs that I should finish first, but I'll come back
> to this afterward if no one else does first.

The first cut might be to reproduce the functionality we already have.
That would allow us to (optionally) use this internal code *or* the
system-provided code with a configure-time switch. We could then strip
out two of the three time zone interface styles we support. And we could
(possibly) allow folks to use their built-in time zone databases if they
want, to minimize inconsistancies between PostgreSQL and other programs
on the system. We might need to modify function and variable signatures
to avoid conflicts with system-supplied libraries.

The next step would be to see how to generalize this past Y2038 (as
mentioned previously, time zone info for pre-1900 is not likely to be
interesting). If it involves mass substitution of time_t for, say,
pg_time_t, then that might be all we need for the second phase, at which
time we've broken the y2038 limit by moving to 64-bit integer time.

The last phase could be extending the API to allow multiple simultaneous
time zones, detection of bad time zones, etc etc. This would involve API
changes or extensions, and breaks compatibility with system-supplied
infrastructure.
                   - Thomas


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Redhat 7.3 time manipulation bug
Next
From: Tom Lane
Date:
Subject: Re: Redhat 7.3 time manipulation bug