BUG #1094: date_part('week') bug - Mailing list pgsql-bugs

From PostgreSQL Bugs List
Subject BUG #1094: date_part('week') bug
Date
Msg-id 20040304175642.7319ACF4B5C@www.postgresql.com
Whole thread Raw
Responses Re: BUG #1094: date_part('week') bug
Re: BUG #1094: date_part('week') bug
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1094
Logged by:          xterm

Email address:      xterm@linuxnews.pl

PostgreSQL version: 7.3.4

Operating system:   RH Fedora

Description:        date_part('week') bug

Details:

Some late dates give in some years wrong
date_part('week')

examples:

select date_part('week', '2003-12-30'::date);
 date_part
-----------
         1
(1 row)

select date_part('week', '1997-12-29'::date);
 date_part
-----------
         1
(1 row)

but:

select date_part('week', '1998-12-31'::date);
 date_part
-----------
        53
(1 row)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1093: wrong handling of additional parameters in init script
Next
From: Bruno Wolff III
Date:
Subject: Re: BUG #1094: date_part('week') bug