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] [pgsql-bugs] Daily Digest V1 #784

2003-01-29 Thread tomas
On Tue, Jan 28, 2003 at 17:47:14 -0500, tom lane wrote: [...] > 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 > in

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 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
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: > 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
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

[BUGS] Bug #889: PQconnectdb SEGV

2003-01-29 Thread pgsql-bugs
Chris Brown ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description PQconnectdb SEGV Long Description In the libpq C interface, PQconnectdb results in a SEGV when the conn->sock number is greater than __FD_SETSIZE (1024 on linux). The

Re: [BUGS] Bug #889: PQconnectdb SEGV

2003-01-29 Thread Tom Lane
[EMAIL PROTECTED] writes: > In the libpq C interface, PQconnectdb results in a SEGV when the conn->sock number >is greater than __FD_SETSIZE (1024 on linux). The crash is caused by stack >corruption when attempting to FD_SET. Shouldn't you be filing this bug against libc? Seems to me the left