Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoSKv-0005zt-I9 for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Jun 2013 05:50:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UoSKv-0004PF-18 for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Jun 2013 05:50:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoAkb-0006cN-Ca for pgsql-bugs@postgresql.org; Sun, 16 Jun 2013 11:04:01 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoAkZ-0002dn-9d for pgsql-bugs@postgresql.org; Sun, 16 Jun 2013 11:04:00 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UoAkY-000066-Mu for pgsql-bugs@postgresql.org; Sun, 16 Jun 2013 11:03:59 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UoAkT-0006qe-E5 for pgsql-bugs@postgresql.org; Sun, 16 Jun 2013 11:03:53 +0000 Date: Sun, 16 Jun 2013 11:03:53 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8230: Time interval size overflow To: pgsql-bugs@postgresql.org From: rok.kralj@gmail.com X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8230 Logged by: Rok Kralj Email address: rok.kralj@gmail.com PostgreSQL version: 9.2.4 Operating system: Arch Linux Description:=20=20=20=20=20=20=20=20 As far as I know, the INTERVAL type is represented using three int32, one for months, days and milliseconds. However, overflow detections seems to work correctly only on these three types; if they get overflown indirectly, they do not get detected: SELECT INTERVAL '3000000000 days' ERROR: interval field value out of range: "3000000000 days" SELECT INTERVAL '2000000000 years' -147483648 years I'm surprised this hasn't been reported yet. The expected behaviour is to raise an error. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs