Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkBX4-0008OR-UU for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 15:55: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 1dkBX3-0006Yn-L0 for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 15:55:57 +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 1dkBWL-0005DZ-Pe for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 15:55:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dkBWI-0001Q9-L3 for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 15:55:13 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7MFt75V025459; Tue, 22 Aug 2017 11:55:07 -0400 From: Tom Lane To: nithinkrishna.p@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14786: Wrong Precision with money datatype In-reply-to: <20170821080401.1458.12982@wrigleys.postgresql.org> References: <20170821080401.1458.12982@wrigleys.postgresql.org> Comments: In-reply-to nithinkrishna.p@gmail.com message dated "Mon, 21 Aug 2017 08:04:01 -0000" Date: Tue, 22 Aug 2017 11:55:07 -0400 Message-ID: <62890.1503417307@sss.pgh.pa.us> 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 nithinkrishna.p@gmail.com writes: > I have a table created in postgres database with money datatype. I have > connected to the database via SQuirrel SQL Client and found that the > precision of the money datatype is shown as 2147483647. But from the > postgres documentation the precision and scale should be 19 and 2 > respectively. You're reading something into the documentation that's not there. Postgres doesn't have an explicit notion of precision and scale for type money; those concepts are specific to type numeric. I think the information_schema views will present made-up, hard-wired values for the float and integer types as well, but they don't for money, since its range is locale-dependent. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs