Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.
Date
Msg-id 1294748808.15734.0.camel@fsopti579.F-Secure.com
Whole thread Raw
In response to Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Responses Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On tis, 2011-01-11 at 12:30 +0900, Itagaki Takahiro wrote:
> On Tue, Jan 11, 2011 at 11:10, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Itagaki Takahiro <itagaki.takahiro@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.



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: ALTER TYPE 0: Introduction; test cases
Next
From: Robert Haas
Date:
Subject: Re: ALTER TYPE 0: Introduction; test cases