From: Radoslaw Stachowiak <radek@alter.pl>
To: pgsql-sql@postgresql.org
Subject: Re: now() with microsecond granulity needed
Date: Wed, 21 Feb 2001 21:54:16 +0100
Message-ID: <20010221215416.C1718@blue.alter.pl> (raw)
In-Reply-To: <12975.982688262@sss.pgh.pa.us>
References: <20010220173146.E1718@blue.alter.pl>
<12975.982688262@sss.pgh.pa.us>
*** Tom Lane <tgl@sss.pgh.pa.us> [Tuesday, 20.February.2001, 11:57 -0500]:
> > using now() to init TIMESTAMP fields I got resolution of one second. How
> > can I define DEFAULT in column (TIMESTAMP type) to get higher
> > time-resolution (TIMESTAMP supports microseconds).
>
> You could make a variant of now() that relies on gettimeofday() instead
> of time(). Note that you probably won't get microsecond precision in
> any case...
Do You mean changing sources and recompiling?
So there is no way of getting more accurate NOW time directly in SQL ?
/DEFAULT clause/ at this moment?
I just have now about 5..10 inserts per second, so in fact even ms would help
me.
--
radoslaw.stachowiak.........................................http://alter.pl/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: radek@alter.pl
Subject: Re: now() with microsecond granulity needed
In-Reply-To: <20010221215416.C1718@blue.alter.pl>
References: <20010220173146.E1718@blue.alter.pl> <12975.982688262@sss.pgh.pa.us> <20010221215416.C1718@blue.alter.pl>
* 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