Re: [HACKERS] Bug?

From: Michael Meskes <meskes(at)topsystem(dot)de>
To: maillist(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian)
Cc: pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker)
Subject: Re: [HACKERS] Bug?
Date: 1998-02-06 13:25:24
Message-ID: 199802061325.OAA12741@gauss.topsystem.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:
> I think it converts it to an integer, and then by the time it tries to
> convert it, it has already chopped off the top of the number. The only
> fix for this would be to read all integers in as 64-bit integers, then
> do the conversion, but that could be a performance problem.

I agree. And performance is important. I think explicit type conversion is
what we should do. Or is it asked for too much if the user has to add a
::float8 to the number?

Michael

--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 1998-02-06 15:09:15 06.02.98 snapshot core dump
Previous Message The Hermit Hacker 1998-02-06 12:59:56 Re: The new 'isinf.c' function in port.