BUG #14527: Calandar Week

From: jcantin(at)strategicfuse(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14527: Calandar Week
Date: 2017-02-02 16:50:31
Message-ID: 20170202165031.1400.78533@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14527
Logged by: John Cantin
Email address: jcantin(at)strategicfuse(dot)com
PostgreSQL version: 9.3.6
Operating system: centos 7
Description:

Postgres seems to define calendar week differently depending on the function
called.

The extract function shows '2017-1-1' as week 52 but the to_char function
shows it as 1

select extract('week' from '2017-1-1'::date) as week

select to_char('2017-1-1'::date,'ww')

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-02-02 17:21:17 Re: BUG #14527: Calandar Week
Previous Message bricklen 2017-02-02 15:20:28 Re: Bug in postgres log file