Re: date - Mailing list pgsql-sql

From Tom Lane
Subject Re: date
Date
Msg-id 24291.1034968747@sss.pgh.pa.us
Whole thread Raw
In response to Re: date  ("wishy wishy" <wishy66@hotmail.com>)
List pgsql-sql
"wishy wishy" <wishy66@hotmail.com> writes:
> we have a PostgreSQL 7.2.2 on i686-pc-linux-gnu, compiled by GCC 2.96
> installation on pogo linux 7.2
> we are facing a data problem when we do the following
> select to_char(to_date('1969-10-22','YYYY-MM-DD'),'YYYY-MM-DD');

> ERROR:  Unable to convert date to tm

Recent versions of glibc broke mktime() for dates before 1970.
There is a workaround for this silliness in Postgres 7.2.3.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Frank Morton"
Date:
Subject: join question
Next
From: Stephan Szabo
Date:
Subject: Re: join question