Re: formatting a date when some nulls exist - Mailing list pgsql-novice

From Tom Lane
Subject Re: formatting a date when some nulls exist
Date
Msg-id 24550.1031114535@sss.pgh.pa.us
Whole thread Raw
In response to Re: formatting a date when some nulls exist  (Eric Walstad <eric@walstads.net>)
List pgsql-novice
Eric Walstad <eric@walstads.net> writes:
> [ewalstad@uluwatu ewalstad]$ uname -a
> Linux uluwatu 2.4.18-10 #1 Wed Aug 7 11:39:21 EDT 2002 i686 unknown

Ah, you're using the new-and-"improved" glibc.  I'll bet you have dates
in your table that precede 1/1/1970?  The glibc boys decided (quite
arbitrarily) that mktime(3) should stop supporting pre-1970 dates, and
that in turn broke a number of Postgres operations.

I just today committed a fix that works around this problem.  It'll
be in PG 7.3 if it survives beta testing.  I'm afraid I don't have any
very good answer for 7.2 ... but do complain to your Linux distributor
that mktime() is broken.  Because it is, and the glibc authors need to
hear about it often enough to realize that they made a stupid decision.

            regards, tom lane

pgsql-novice by date:

Previous
From: Eric Walstad
Date:
Subject: Re: formatting a date when some nulls exist
Next
From: Eric Walstad
Date:
Subject: Re: formatting a date when some nulls exist