Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.
Date: 2011-01-11 12:26:48
Message-ID: 1294748808.15734.0.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-testers

On tis, 2011-01-11 at 12:30 +0900, Itagaki Takahiro wrote:
> On Tue, Jan 11, 2011 at 11:10, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-01-11 12:27:46 Re: ALTER TYPE 0: Introduction; test cases
Previous Message Noah Misch 2011-01-11 12:25:56 Re: ALTER TYPE 0: Introduction; test cases

Browse pgsql-testers by date

  From Date Subject
Next Message Tom Lane 2011-01-11 16:03:42 Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.
Previous Message Itagaki Takahiro 2011-01-11 03:30:52 Re: Fwd: [TESTERS] [TEST REPORT] 9.1Alpha3 Feature E.1.4.7.2 in release notes.