pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mars@cannoncreek.com
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [SQL] epoch to show millseconds
Date: Tue, 17 Jul 2001 12:04:00 -0400
Message-ID: <25214.995385840@sss.pgh.pa.us> (raw)
In-Reply-To: <01071208393000.07133@hellraiser.cannoncreek.com>
References: <01071208393000.07133@hellraiser.cannoncreek.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <25214.995385840@sss.pgh.pa.us>
Permalink:  ../25214.995385840@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25214.995385840@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mars@cannoncreek.com, pgsql-general@postgresql.org
  Subject: Re: [SQL] epoch to show millseconds
  In-Reply-To: <25214.995385840@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox