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

From email@piotr-stefaniak.me
Subject [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTEdoesn't truncate the seconds field
Date
Msg-id 20161227172307.10135.7747@wrigleys.postgresql.org
Whole thread Raw
Responses Re: [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTE doesn't truncate the seconds field
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [BUGS] pg_receivexlog creating holes in WAL (HEAD only)
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14479: Casting non-constant values to INTERVAL DAY TO MINUTE doesn't truncate the seconds field