Re: [HACKERS] numeric data type on 6.5

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] numeric data type on 6.5
Дата
Msg-id 8478.925225198@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] numeric data type on 6.5  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> I'm looking at this right now. I had coded in a fallback to FLOAT8 for
> the integer types because at the time that was the only other useful
> numeric type. However, I'm going to try changing the code to leave a
> failed INTx token as a string of unspecified type, which would be
> typed and converted later using the automatic coersion mechanism.

That would be good as far as it goes, but what about cases with a
decimal point in 'em?  Converting to float and then to numeric will
lose precision.

I'm inclined to think you should prevent the parser from converting
*any* numeric constant out of string form until it knows the target data
type.

(IIRC, INT8 has problems similar to NUMERIC's...)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] views and group by (formerly: create view as selec
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] unknown symbol 'lo_unlink'