Feature request - Add microsecond as a time unit for interval

From: David Tulloh <david(dot)tulloh(at)anu(dot)edu(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Feature request - Add microsecond as a time unit for interval
Date: 2006-02-09 04:16:22
Message-ID: 43EAC216.1030908@anu.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Premnath, KN 2006-02-09 07:17:57 {I} One Information required...
Previous Message Bruce Momjian 2006-02-09 03:57:20 Re: Sequences/defaults and pg_dump