[BUGS] BUG #14527: Calandar Week

Поиск
Список
Период
Сортировка
От jcantin@strategicfuse.com
Тема [BUGS] BUG #14527: Calandar Week
Дата
Msg-id 20170202165031.1400.78533@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: [BUGS] BUG #14527: Calandar Week
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14527
Logged by:          John Cantin
Email address:      jcantin@strategicfuse.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')


--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: bricklen
Дата:
Сообщение: Re: [BUGS] Bug in postgres log file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14527: Calandar Week