Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAgOd-0005u0-Be for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jun 2016 16:31:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bAgOc-0005P9-4i for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jun 2016 16:31:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAg1b-0001tA-9k for pgsql-bugs@postgresql.org; Wed, 08 Jun 2016 16:08:11 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAg1W-0006L2-Pt for pgsql-bugs@postgresql.org; Wed, 08 Jun 2016 16:08:10 +0000 Received: from mfilter19-d.gandi.net (mfilter19-d.gandi.net [217.70.178.147]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 5901D1720D1; Wed, 8 Jun 2016 18:08:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter19-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter19-d.gandi.net (mfilter19-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id zMH8Ix_JrC7i; Wed, 8 Jun 2016 18:08:02 +0200 (CEST) X-Originating-IP: 46.232.148.34 Received: from localhost (ip-46-232-148-34.static.adsl.cheapnet.it [46.232.148.34]) (Authenticated sender: strk@kbt.io) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 4EFD71720CE; Wed, 8 Jun 2016 18:08:01 +0200 (CEST) Date: Wed, 8 Jun 2016 18:08:00 +0200 From: Sandro Santilli To: pgsql-bugs@postgresql.org Subject: lower integer bound not supported Message-ID: <20160608160800.GB13838@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.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 According to documentation (from 9.1 to 9.5) the supported integer ranges are these ones: smallint 2 bytes -32768 to +32767 integer 4 bytes -2147483648 to +2147483647 bigint 8 bytes -9223372036854775808 to +9223372036854775807 But the lowest bound is not really supported: # select -32768::int2; ERROR: smallint out of range # select -2147483648::int4; ERROR: integer out of range # select -9223372036854775808::int8; ERROR: bigint out of range This happens with server versions 9.1.22, 9.3.6 and 9.5(unspecified). Is it the code or the documentation being broken ? To me, the documentation makes the most sense, and the code is broken. --strk; () Free GIS & Flash consultant/developer /\ https://strk.kbt.io/services.html -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs