Re: timestamp format bug

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: timestamp format bug
Дата
Msg-id 47A1995D.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на timestamp format bug  ("Roberts, Jon" <Jon.Roberts@asurion.com>)
Ответы Re: timestamp format bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>> On Thu, Jan 31, 2008 at  9:34 AM, in message
<1A6E6D554222284AB25ABE3229A92762715521@nrtexcus702.int.asurion.com>, "Roberts,
Jon" <Jon.Roberts@asurion.com> wrote:
> select to_char(date, 'yyyy-mm-dd hh24:mi:ss.ms') as char,
>        date
>   from (select timestamp'2008-01-30 15:06:21.560' as date) sub
>
> "2008-01-30 15:06:21.560";"2008-01-30 15:06:21.56"
>
> These two fields should be consistent because they should be formatted
> the same way.
Why would you think that?
I would expect the timestamp to be presented with one to nine
digits to the right of the decimal point, depending on the value.
I can think of a couple database products which only go to three
decimal positions, and always show three, but that's hardly a
standard.
-Kevin




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

Предыдущее
От: "Roberts, Jon"
Дата:
Сообщение: timestamp format bug
Следующее
От: Hubert FONGARNAND
Дата:
Сообщение: Re: BUG: type of "xxxx" does not match that when preparing the plan