This is a follow-up/ to my previous question Is it possible to insert un-formatted data for money data type in PostgreSQL
I could read money data by typecasting it into numeric
SELECT '52093.89'::money::numericWill it give inconsistent data, rounded etc.. ?
As per ISO standard, the
moneydatatype size is (19,4) but why PostgreSQL returns size as 2147483647? Is this size locale dependent?Is it a good idea to use the
moneydatatype to store/retrieve locale specific values? If not, when is themoneydatatype best suitable?
I have to use the money datatype for certain cases. My worry is will I get any problems if I treat money datatype values as decimal values?
I don't bother about locale specific values such as symbol, digit, and decimal grouping etc.. Can I store money datatype values as per lc_monetary settings and reading by typecasting it to numeric?