Re: Timestamp, fractional seconds problem

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Timestamp, fractional seconds problem
Дата
Msg-id 3BBCCE4A.B1AE201F@fourpalms.org
обсуждение исходный текст
Ответ на Timestamp, fractional seconds problem  (Laurette Cisneros <laurette@nextbus.com>)
Ответы Re: Timestamp, fractional seconds problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > ... then trailing zeros are hacked out,
> > two digits at a time.
> I was wondering why it seemed to always want to produce an even number
> of fractional digits.  Why are you doing it 2 at a time and not 1?
> I should think timestamp(1) would produce 1 fractional digit, not
> two digits of which the second is always 0 ...

Hmm. Good point wrt timestamp(1). I hack out two digits at a time to get
convergence on a behavior consistant with previous releases of having
(at least) two digits of precision (not one or three). I was trying to
minimize the impact of the other changes.

Note that another "arbitrary difference" is that, by default, TIMESTAMP
is actually TIMESTAMP WITH TIME ZONE. SQL99 specifies otherwise, but
there would seem to be fewer porting and upgrade issues for 7.2 if we
choose the current behavior.

Not sure where pg_dump and other utilities gin up the SQL9x type names,
but we should fix things during beta to be consistant.
                     - Thomas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Timestamp, fractional seconds problem
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: cvs problem