Re: [BUGS] BUG #14786: Wrong Precision with money datatype - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14786: Wrong Precision with money datatype
Date
Msg-id 62890.1503417307@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] BUG #14786: Wrong Precision with money datatype  (nithinkrishna.p@gmail.com)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Wei Congrui
Date:
Subject: [BUGS] Re: [BUGS] 直接执行psql.exe出现的问题
Next
From: Peter Eisentraut
Date:
Subject: Re: [BUGS] BUG #14785: Logical replication does not work after addinga column. Bug?