From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "David D(dot) Kilzer" <ddkilzer(at)theracingworld(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] [PATCH] Contrib C source for casting MONEY to INT[248] and FLOAT[48] |
Date: | 2001-06-19 14:20:18 |
Message-ID: | 22666.992960418@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-patches |
"David D. Kilzer" <ddkilzer(at)lubricants-oil(dot)com> writes:
> Attached please find a patch to cast (convert) the MONEY type to any one
> of the following types:
> INT2, INT4, INT8, FLOAT4, FLOAT8
Hmm. It strikes me as a rather bad idea to introduce implicit casting
of MONEY to all these other types --- I suspect that's going to create
a bunch of parsing ambiguities.
> I wrote this because I needed to convert MONEY to a standard decimal
> value and didn't want to do it on the client in Perl, and I didn't want
> to use a plpgsql function that used string parsing.
Seems like a better answer is to use NUMERIC instead of MONEY in the
first place...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Vilson farias | 2001-06-19 14:52:36 | Re: Still getting problems with -cache lookup for userid 26 failed- (PART 2) |
Previous Message | Tom Lane | 2001-06-19 14:03:31 | Re: rule on insert with default values for new instance |
From | Date | Subject | |
---|---|---|---|
Next Message | Alex Pilosov | 2001-06-19 14:26:19 | Re: PlPerl compile failure |
Previous Message | Tom Lane | 2001-06-19 14:06:31 | Re: Re: temp-table-related failure in regression tests |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-19 14:51:41 | Re: possible patch to increase number of hash overflow pages? |
Previous Message | Tom Lane | 2001-06-19 13:52:43 | Re: [Help] Temporary Table: Implicitely created index not shown in \d i |