pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: 369358123@qq.com
Subject: BUG #15529: interval max value '178000000 years' in doc is not exact. It should 178956970.
Date: Fri, 30 Nov 2018 10:17:35 +0000
Message-ID: <15529-fbe275849adcdc4b@postgresql.org> (raw)

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.



Message-ID: <15529-fbe275849adcdc4b@postgresql.org>
Permalink:  ../15529-fbe275849adcdc4b@postgresql.org/
Also on:    postgresql.org/message-id/15529-fbe275849adcdc4b@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, 369358123@qq.com
  Subject: Re: BUG #15529: interval max value '178000000 years' in doc is not exact. It should 178956970.
  In-Reply-To: <15529-fbe275849adcdc4b@postgresql.org>
  References: <15529-fbe275849adcdc4b@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox