| From: | Thom Brown <thombrown(at)gmail(dot)com> |
|---|---|
| To: | Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> |
| Cc: | PGSQL Mailing List <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: How useful is the money datatype? |
| Date: | 2009-10-03 11:10:56 |
| Message-ID: | bddc86150910030410i18cdaee8q71df42ae1e594b00@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
2009/10/3 Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
>
> Here's how I represent currency values:
>
> CREATE DOMAIN currency
> AS numeric(10,2);
>
>
>
See, I can understand why someone might take the extra step to create a
domain for storing monetary units. The fact that money is in the
documentation, but contains no notes to explain that it's only there for
backward-compatibility lead me to wonder if it still had relevance, which I
gather it doesn't really. I'll avoid using it as it only appears to
introduce unnecessary limitations with very little advantages.
Thom
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raymond O'Donnell | 2009-10-03 11:20:57 | Re: How useful is the money datatype? |
| Previous Message | Grzegorz Jaśkiewicz | 2009-10-03 10:53:12 | Re: How useful is the money datatype? |