pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: web+postgresql@modin.io
To: pgsql-bugs@postgresql.org
Subject: BUG #14486: Inserting and selecting interval have different constraints
Date: Wed, 04 Jan 2017 15:03:01 +0000
Message-ID: <20170104150301.10134.9126@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14486
Logged by:          Per Modin
Email address:      web+postgresql@modin.io
PostgreSQL version: 9.6.1
Operating system:   Linux 303a92173594 4.8.15-moby #1 SMP Sat Dec 17 0
Description:        

Found this bug in 9.4.8, tried it in docker towards psql 9.6.1 and it's in
there as well. A minimum working example would be as follows:

```
postgres=# CREATE TABLE tbl AS SELECT 9223372036854 * interval '1 second'
col; TABLE tbl;
SELECT 1
ERROR:  interval out of range
```

```
postgres=# SELECT count(*) FROM tbl;
 count
-------
     1
(1 row)
```

It seems that inserting and retrieving data have different constraints. As
you
can see from query 2, the data still gets inserted.

```
postgres=# select version();
                                         version
------------------------------------------------------------------------------------------
 PostgreSQL 9.6.1 on x86_64-pc-linux-gnu, compiled by gcc (Debian 4.9.2-10)
4.9.2, 64-bit
(1 row)
```

Best regards,
Per Modin


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


view thread (10+ messages)  latest in thread

Message-ID: <20170104150301.10134.9126@wrigleys.postgresql.org>
Permalink:  ../20170104150301.10134.9126@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170104150301.10134.9126@wrigleys.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: web+postgresql@modin.io
  Subject: Re: BUG #14486: Inserting and selecting interval have different constraints
  In-Reply-To: <20170104150301.10134.9126@wrigleys.postgresql.org>
  References: <20170104150301.10134.9126@wrigleys.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