BUG #15529: interval max value '178000000 years' in doc is not exact.It should 178956970. - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15529: interval max value '178000000 years' in doc is not exact.It should 178956970.
Date
Msg-id 15529-fbe275849adcdc4b@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15529
Logged by:          wang yakun
Email address:      369358123@qq.com
PostgreSQL version: 11.0
Operating system:   Linux
Description:

you wrote:

interval: 
Low Value: -178000000 years
High Value: 178000000 years

in 'Table 8.9. Date/Time Types' in postgresql 11 documention.
However, I can execute this sql:

postgres=# select interval '178000001' year;
    interval
-----------------
 178000001 years
(1 row)

In other words, max value is not 178000000.
****************************************************
I test the exact value is 178956970:

postgres=# select interval '178956970' year;
    interval
-----------------
 178956970 years
(1 row)

postgres=# select interval '178956971' year;
ERROR:  interval out of range
LINE 1: select interval '178956971' year;
                        ^
So, you should wrote 178956970 in postgresql 11 documention.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15528: on v11.0 version still get error "ERROR: catalog ismissing 1 attribute(s) for relid 6855092"
Next
From: PG Bug reporting form
Date:
Subject: BUG #15530: unable restore index on function from earthdistancecontrib