pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedTimestamp accuracy
2+ messages / 1 participants
[nested] [flat]
* Timestamp accuracy
@ 2001-02-02 08:15 Florian Steffen <fsteffen@urbanet.ch>
0 siblings, 1 reply; 2+ messages in thread
From: Florian Steffen @ 2001-02-02 08:15 UTC (permalink / raw)
To: pgsql-general@postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Timestamp accuracy
@ 2001-02-03 15:21 Florian Steffen <fsteffen@urbanet.ch>
parent: Florian Steffen <fsteffen@urbanet.ch>
0 siblings, 0 replies; 2+ messages in thread
From: Florian Steffen @ 2001-02-03 15:21 UTC (permalink / raw)
To: 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
Florian
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-02-03 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 08:15 Timestamp accuracy Florian Steffen <fsteffen@urbanet.ch>
2001-02-03 15:21 ` Florian Steffen <fsteffen@urbanet.ch>
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