Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHFU8-0008Ve-Kw for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:40:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHFU8-0006eI-6Z for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:40:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHFU7-0006eB-MW for pgsql-bugs@postgresql.org; Thu, 07 Jan 2016 18:40:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHFU5-0000Lc-DX for pgsql-bugs@postgresql.org; Thu, 07 Jan 2016 18:40:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u07IeSIi013213; Thu, 7 Jan 2016 13:40:28 -0500 From: Tom Lane To: maxk@yelp.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13848: 2016 Week Number Error In-reply-to: <20160105193217.1114.60526@wrigleys.postgresql.org> References: <20160105193217.1114.60526@wrigleys.postgresql.org> Comments: In-reply-to maxk@yelp.com message dated "Tue, 05 Jan 2016 19:32:17 +0000" Date: Thu, 07 Jan 2016 13:40:28 -0500 Message-ID: <13212.1452192028@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org maxk@yelp.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs