From: | "Romanenko Mikhail" <mikhail(at)angg(dot)ru> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2 |
Date: | 2000-08-08 03:59:49 |
Message-ID: | 018a01c000ed$1966f1c0$01011aac@angg.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> A general comment on your table design though: anyone who expects exact
> equality tests on fractional float values to succeed is going to get
> burnt sooner or later. If you must use this style of coding then
> I recommend using numeric fields not float fields, and certainly not
> float4 fields.
>
> regards, tom lane
I try 'numeric', 'decimal', and 'float8' types and only 'float8' works. Both 'decimal' and 'numeric' failed (as 'float4' did) with error message: "Unable to identify an operator '=' for type numeric and 'float8' You will have to retype this query using an explicite cast".
And though my problem is solved, thank you for the help, I thought perhaps this information will be usefull for you.
Mikhail.
From | Date | Subject | |
---|---|---|---|
Next Message | Len Morgan | 2000-08-08 05:56:16 | Fw: pg_dump help -- Problem Fixed -- Thank you all!!! |
Previous Message | Tom Lane | 2000-08-08 03:54:52 | Re: pg_dump help |
From | Date | Subject | |
---|---|---|---|
Next Message | Zeugswetter Andreas SB | 2000-08-08 07:39:55 | AW: UNIONS |
Previous Message | Philip Warner | 2000-08-08 03:37:55 | Re: [HACKERS] Re: Trouble with float4 afterupgrading from 6.5.3 to 7.0.2 |