time + date_part oddness?

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема time + date_part oddness?
Дата
Msg-id 20010105100042N.t-ishii@sra.co.jp
обсуждение исходный текст
Список pgsql-hackers
I am writing an article of PostgreSQL 7.1 and have some questions.

I can get the millisecond part of a timestamp data using date_part.

test=# SELECT date_part('millisecond','2001/1/15 12:04:05.1234'::TIMESTAMP);date_part 
-----------    123.4
(1 row)

However if I apply the function to a time data, I get a strange result.

test=# SELECT date_part('millisecond','12:04:05.1234'::time);   date_part     
------------------5123.39999999676
(1 row)

Any thought?

(This is current)
--
Tatsuo Ishii


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Missing ColLabel tokens
Следующее
От: Matthew
Дата:
Сообщение: RE: [GENERAL] pg_dump return status..