On tis, 2011-01-11 at 12:30 +0900, Itagaki Takahiro wrote: > On Tue, Jan 11, 2011 at 11:10, Tom Lane <t...@sss.pgh.pa.us> wrote: > > Itagaki Takahiro <itagaki.takah...@gmail.com> writes: > >> It was reported from a tester that we don't have casts of money from/to > >> integer > >> types even though we have from/to numeric type. > > > > In most locales, the idea isn't sensible. > > The documentation says: > | Input is accepted in a variety of formats, > | including integer and floating-point literals > > If we won't to add accept integers for money, we should fix the docs. > | integer and floating-point string literals > | ~~~~~~~~~~~~~~~ > Will it get better?
I think adding a cast from integer to money is probably quite reasonable. The other way around, maybe not, or only an explicit cast. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers