[BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTEdoesn't truncate the seconds field

Поиск
Список
Период
Сортировка
От email@piotr-stefaniak.me
Тема [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTEdoesn't truncate the seconds field
Дата
Msg-id 20161227172307.10135.7747@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTE doesn't truncate the seconds field  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14479
Logged by:          Piotr Stefaniak
Email address:      email@piotr-stefaniak.me
PostgreSQL version: 9.4.10
Operating system:   FreeBSD, probably irrelevant
Description:

# SELECT x.y::INTERVAL DAY TO MINUTE, (interval '02:47:15.375721')::INTERVAL
DAY TO MINUTE FROM (VALUES (interval '02:47:15.375721')) x (y);
        y        | interval 
-----------------+----------
 02:47:15.375721 | 02:47:00

I chose 9.4.10 as the version in the web form because that's what I have,
but Andrew Gierth has said that this is the behavior of versions: 9.2, 9.3,
and 9.4 but not versions 9.1, 9.5, and HEAD.


--
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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [BUGS] pg_receivexlog creating holes in WAL (HEAD only)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTE doesn't truncate the seconds field