Re: Bug in tm2timestamp

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bug in tm2timestamp
Date: 2013-03-04 20:08:26
Message-ID: 20130304200826.GH9507@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

> BTW, it strikes me that it's a bit silly to go to all this effort
> here, and then ignore the possibility of overflow in the dt2local
> adjustment just below. But we'd have to change the API of that
> function, which I don't especially feel like doing right now.

Another point worth considering is that most of this is duplicated by
ecpg's libpgtypes. Do we want to fix that one too, or do we just let it
continue to be broken? I note that other bugs are already unfixed in
ecpg's copy. One other idea to consider is moving these things to
src/common, so we would have a single implementation. I already have a
patch that implements most of that, but it's only 90% there because it's
missing support for some things that the current code manipulates as
global variables (via GUC), and I didn't want to waste more time fixing
that. AFAICS it's just a SMOP, though, but I had postponed that whole
effort to the 9.4 cycle to avoid stalling 9.3 even longer.

But in light of this bug and other already fixed date/time bugs, perhaps
it's warranted? Opinions please.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-03-04 20:13:13 Re: Enabling Checksums
Previous Message Tom Lane 2013-03-04 19:54:45 Re: Bug in tm2timestamp