Re:

From: "Jeff MacDonald" <jeff(at)interchange(dot)ca>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Postgres List" <pgsql-general(at)postgresql(dot)org>
Subject: Re:
Date: 2002-10-10 05:02:24
Message-ID: HIEGJGDMNIKAMPPDEKBNKEJECCAA.jeff@interchange.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Actually this was on FreeBSD 4.6 Release.

Sorry :(

Casting it to datetime fixed the issue.

Jeff.

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, October 10, 2002 12:38 AM
> To: Jeff MacDonald
> Cc: Postgres List
> Subject: Re: [GENERAL]
>
>
> "Jeff MacDonald" <jeff(at)interchange(dot)ca> writes:
> > This problem is occuring on pgsql 7.2.1 as well as 7.2.2.
> > I have nothing to say except this is VERY weird. Is there something
> > evil about 1930-04-27 ?
> > xxx=> SELECT age('1995-01-01',birthdate) FROM users where id =343;
> > ERROR: Unable to convert date to tm
>
> What's your platform ... a recent Red Hat release perchance? If so,
> PG 7.2.3 might make this better. The glibc boys gratuitously broke
> mktime() for pre-1970 dates. There's a workaround in 7.2.3. But
> do complain to Red Hat if this turns out to be your issue. They
> need to hear --- repeatedly --- that this was a stupid, stupid, stupid
> decision on the part of the glibc maintainers.
>
> regards, tom lane

In response to

  • Re: at 2002-10-10 04:38:29 from Tom Lane

Browse pgsql-general by date

  From Date Subject
Next Message Louis-Marie Croisez 2002-10-10 08:41:10 Re: access time performance problem
Previous Message Tom Lane 2002-10-10 04:38:29 Re: