Re: return error from date_part - Mailing list pgsql-bugs

From Tom Lane
Subject Re: return error from date_part
Date
Msg-id 9602.985379256@sss.pgh.pa.us
Whole thread Raw
In response to return error from date_part  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> When I have a specific select, only whitch this date return a error.

> "SELECT date_part('day',fecha) AS day FROM fecha;

>  day |   fecha
> -----+------------
>   24 | 2001-03-25
> (1 row)

Is that a daylight-savings-time transition day in your timezone?
If so, this is a known bug in date-to-timestamp conversion (try
"SELECT fecha::timestamp" to see what's going on).

It's fixed in 7.1.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: return error from date_part
Next
From: Tom Lane
Date:
Subject: Re: 7.0.3 postmaster memory leak with aborted transactions