Re: epoch to show millseconds - Mailing list pgsql-sql

From Tom Lane
Subject Re: epoch to show millseconds
Date
Msg-id 25214.995385840@sss.pgh.pa.us
Whole thread Raw
In response to epoch to show millseconds  (Mars G Miro <mars@cannoncreek.com>)
List pgsql-sql
Mars G Miro <mars@cannoncreek.com> writes:
>     how do I make it accurate up to milliseconds value?

You don't.  current_timestamp depends on the time() system call,
which only returns a number accurate to one second.

There is a higher-precision current time function in 7.1, but I
forget the details ... see the docs.  IIRC it existed but was
buggy in 7.0, so you'll need to update.

            regards, tom lane

pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: First steps in plpgsql - language not recognized?
Next
From: Tom Lane
Date:
Subject: Re: Select distinct and order by.