Timestamp accuracy

From: Florian Steffen <fsteffen(at)urbanet(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Timestamp accuracy
Date: 2001-02-02 08:15:47
Message-ID: 20010202091547.C634@samaris
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hi,

The user manual said the Timestamp type has a microsecond accuracy, but how can
I display the results of a query with microseconds ?
Without formatting the output has an accuracy of 10^-2 second, and with
formatting it is even worse since the formatting strings do not accept anything
under the second.

SQL example:

> create table test_ts (ts timestamp);
> insert into test_ts values ('2001-2-2 00:00:00.123456789');
> select * from test_ts;

ts
---------------------------
2001-02-02 00:00:00.12+01

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ferruccio Zamuner 2001-02-02 10:30:43 DEBUG strings
Previous Message Konstantinos Agouros 2001-02-02 06:39:41 Re: Is Oracle really so much faster

Browse pgsql-sql by date

  From Date Subject
Next Message Jens Hartwig 2001-02-02 10:20:31 Tuple is too big ...
Previous Message Ian Harding 2001-02-02 04:45:00 Re: SQL Join - MySQL/PostgreSQL difference?