pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Glaesemann <grzm@seespotcode.net>
To: Stuart Brooks <stuartb@cat.co.za>
Cc: pgsql-sql@postgresql.org
Subject: Re: TIMESTAMP comparison problem
Date: Tue, 22 Jan 2008 07:42:20 -0500
Message-ID: <794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net> (raw)
In-Reply-To: <4795A3B0.3010505@cat.co.za>
References: <4795A3B0.3010505@cat.co.za>


On Jan 22, 2008, at 3:05 , Stuart Brooks wrote:

> If I reduce the precision to 3 for the timestamps it appears to  
> work although it makes me nervous.

With float timestamps, you're fooling yourself if you think those  
numbers past the decimal are reliable.

> Should I just recompile to use integer datetimes? I would like to  
> have at least microsecond precision.

Well, you can't get better than microsecond precision with timestamps  
in Postgres. And the only way you can rely on that level of precision  
is to compile with --enable-integer-datetimes.

Michael Glaesemann
grzm seespotcode net





view thread (4+ messages)  latest in thread

Message-ID: <794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net>
Permalink:  ../794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net/
Also on:    postgresql.org/message-id/794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net

 · 

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: grzm@seespotcode.net, stuartb@cat.co.za
  Subject: Re: TIMESTAMP comparison problem
  In-Reply-To: <794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net>

* 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