Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfggc-000883-GD for pgsql-docs@arkaria.postgresql.org; Fri, 24 Mar 2023 12:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfggb-0003XA-Az for pgsql-docs@arkaria.postgresql.org; Fri, 24 Mar 2023 12:38:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfggb-0003X1-30 for pgsql-docs@lists.postgresql.org; Fri, 24 Mar 2023 12:38:25 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfggY-0001NB-NF for pgsql-docs@lists.postgresql.org; Fri, 24 Mar 2023 12:38:24 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 38CF42F7FB75 for ; Fri, 24 Mar 2023 13:38:21 +0100 (CET) Received: from s981.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 29BD32E299E4; Fri, 24 Mar 2023 13:38:21 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.5]) by s981.loopia.se (Postfix) with ESMTP id 2823422B173A; Fri, 24 Mar 2023 13:38:21 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s981.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id ejnVTZsLDCDr; Fri, 24 Mar 2023 13:38:20 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s981.loopia.se (Postfix) with ESMTPSA id 93FBE22B1703; Fri, 24 Mar 2023 13:38:20 +0100 (CET) From: Daniel Gustafsson Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: Mistake in documentation (PG15+) Date: Fri, 24 Mar 2023 13:38:19 +0100 References: <167965358747.3349096.16285106658125853751@wrigleys.postgresql.org> To: akdmnnakdm@gmail.com, Pg Docs In-Reply-To: <167965358747.3349096.16285106658125853751@wrigleys.postgresql.org> Message-Id: <73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se> X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 24 Mar 2023, at 11:26, PG Doc comments form = wrote: > But the correct range here would be from -99499 to 99499: >=20 > select 99499::NUMERIC(2, -3); I'm not sure I see the error you indicate, numeric(2,-3) gives the range indicated in the documentation: postgres=3D# select -99499::numeric(2, -3) as neg, 99499::numeric(2, = -3) as pos; neg | pos --------+------- -99000 | 99000 (1 row) -- Daniel Gustafsson