Feature request - Add microsecond as a time unit for interval

Поиск
Список
Период
Сортировка
От David Tulloh
Тема Feature request - Add microsecond as a time unit for interval
Дата
Msg-id 43EAC216.1030908@anu.edu.au
обсуждение исходный текст
Ответы Re: Feature request - Add microsecond as a time unit for interval  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
The interval datatype can go to microsecond precision though currently 
the smallest unit is seconds.  Microseconds are represented as decimal 
places, eg 5 microseconds is 0.000005 seconds.

To insert microseconds I have to use the following line, ($1*0.000001 || 
' seconds')::interval
Being able to specify microseconds as a unit would avoid hacks like this 
and improve support for sub-second intervals.


David


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

Предыдущее
От: "Premnath, KN"
Дата:
Сообщение: {I} One Information required...
Следующее
От: Alexander Schreiber
Дата:
Сообщение: Re: Upcoming re-releases