Feature request - Add microsecond as a time unit for interval - Mailing list pgsql-hackers

From David Tulloh
Subject Feature request - Add microsecond as a time unit for interval
Date
Msg-id 43EAC216.1030908@anu.edu.au
Whole thread Raw
Responses Re: Feature request - Add microsecond as a time unit for interval
List 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 by date:

Previous
From: "Premnath, KN"
Date:
Subject: {I} One Information required...
Next
From: Alexander Schreiber
Date:
Subject: Re: Upcoming re-releases