Re: BUG #13848: 2016 Week Number Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: maxk(at)yelp(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13848: 2016 Week Number Error
Date: 2016-01-07 18:40:28
Message-ID: 13212.1452192028@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

maxk(at)yelp(dot)com writes:
> SELECT EXTRACT(Week FROM current_date) = 1 instead of 2 Week numbers are all
> off

Not a bug. See the manual's definition of this field:

: The number of the ISO 8601 week-numbering week of the year. By
: definition, ISO weeks start on Mondays and the first week of a year
: contains January 4 of that year. In other words, the first Thursday of a
: year is in week 1 of that year.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2016-01-07 18:49:19 Re: BUG #13853: initdb to UNC path
Previous Message John McKown 2016-01-07 18:37:24 Re: BUG #13848: 2016 Week Number Error