Re: [BUGS] No migration path for MONEY

2003-02-14 Thread Bruce Momjian
Could we use DOMAIN to make MONEY an alias for NUMERIC, perhaps using locale to make it customized, somehow? --- Peter Eisentraut wrote: > Bruce Momjian writes: > > > we need someone to get MONEY working as an extented NUME

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Darcy Buskermolen
Tom you are correct here (like usual), sorry for the wasted thread and time regarding functions that I remembered being there but infact were not. On Wednesday 29 January 2003 10:56, Tom Lane wrote: > Darcy Buskermolen <[EMAIL PROTECTED]> writes: > > Sorry my mistake on versions. > > darcy=> SEL

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Tom Lane
Darcy Buskermolen <[EMAIL PROTECTED]> writes: > Sorry my mistake on versions. > darcy=> SELECT '1.0'::MONEY::FLOAT; > ?column? > >1 > (1 row) > darcy=> select version(); > version > ---

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Darcy Buskermolen
Sorry my mistake on versions. darcy=> SELECT '1.0'::MONEY::FLOAT; ?column? 1 (1 row) darcy=> SELECT '1.0'::MONEY::TEXT; ?column? 1.0 (1 row) darcy=> select version(); version -

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Tom Lane
Darcy Buskermolen <[EMAIL PROTECTED]> writes: > In 7.1 and prior I could do a SELECT '1.0'::MONEY::TEXT or to NUMERIC > or to FLOAT even. No, you couldn't. regression=# SELECT '1.0'::MONEY::TEXT ; ERROR: Cannot cast type 'money' to 'text' regression=# select version();

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Darcy Buskermolen
The problem here is not that we are getting rid of MONEY as datatype, (I see no need for it with having numeric) the problem comes from haveing no way to migrate MONEY to NUMERIC short of hand editing the pgdump file and then reimporting. Yes I know I can use sed, but that is not the point. I

Re: [BUGS] No migration path for MONEY

2003-01-29 Thread Karel Zak
On Tue, Jan 28, 2003 at 08:24:13PM +0100, Peter Eisentraut wrote: > Bruce Momjian writes: > > > we need someone to get MONEY working as an extented NUMERIC type. > > How would the new "money" be different from "numeric"? If we have > "money", should we have "length", "mass", and "temperature"?

Re: [BUGS] No migration path for MONEY

2003-01-28 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > How would the new "money" be different from "numeric"? [ temporarily re-dons currency-trader hat... ] What would actually be useful is a money type that carries along an indication of which currency the amount is expressed in (not per-column as Bruce

Re: [BUGS] No migration path for MONEY

2003-01-28 Thread Peter Eisentraut
Bruce Momjian writes: > we need someone to get MONEY working as an extented NUMERIC type. How would the new "money" be different from "numeric"? If we have "money", should we have "length", "mass", and "temperature"? I think not. Just let the money type die and that's it. -- Peter Eisentraut

Re: [BUGS] No migration path for MONEY

2003-01-27 Thread Josh Berkus
Bruce, > They are probably better off just changing the column data type, _and_ > we need someone to get MONEY working as an extented NUMERIC type. Apparently D'Arcy McCain is going to do this. Go, D'arcy! -- -Josh Berkus Aglio Database Solutions San Francisco ---(

Re: [BUGS] No migration path for MONEY

2003-01-27 Thread Bruce Momjian
They are probably better off just changing the column data type, _and_ we need someone to get MONEY working as an extented NUMERIC type. --- Josh Berkus wrote: > Folks, > > Bug reported off IRC: > > MONEY Type cannot be ca

[BUGS] No migration path for MONEY

2003-01-24 Thread Josh Berkus
Folks, Bug reported off IRC: MONEY Type cannot be cast to any other type, preventing migration from this depreciated data type. Affects: 7.2.3, 7.3.1 Frequency: 100% Reproducable Effect When Occurring: Unable to convert, query data Difficulty of Fix: Easy, probably Certianty of Diagnosis: