Your source is in no way official. This applies to 2011, and I don’t even recognize the authors. If the type of money were “discouraged,” PostgreSQL would say so in the manual, but it is not .
For a more official source, read this thread in pgsql-general (this week only!) With statements from major developers, including D'Arcy JM Cain (the original author of type money) and Tom Lane:
Mostly money has its (limited) use. The advantage over numeric is performance.
decimal just an alias for numeric in Postgres.
Related answer (and comments!) About the improvements in recent releases:
- Jasper Report: cannot get value for field 'x' of class 'org.postgresql.util.PGmoney'
Personally, I like to store the currency as an integer representing cents. This is more effective than any of the other options mentioned.
Erwin Brandstetter Mar 31 '13 at 12:56 2013-03-31 12:56
source share