pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Steffen <fsteffen@urbanet.ch>
To: pgsql-sql@postgresql.org
Subject: Timestamp accuracy
Date: Sat, 3 Feb 2001 16:21:41 +0100
Message-ID: <20010203162141.A3886@samaris.urbanet.ch> (raw)
In-Reply-To: <20010202091547.C634@samaris>
References: <20010202091547.C634@samaris>

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




view thread (2+ messages)

Message-ID: <20010203162141.A3886@samaris.urbanet.ch>
Permalink:  ../20010203162141.A3886@samaris.urbanet.ch/
Also on:    postgresql.org/message-id/20010203162141.A3886@samaris.urbanet.ch

 · 

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 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: fsteffen@urbanet.ch
  Subject: Re: Timestamp accuracy
  In-Reply-To: <20010203162141.A3886@samaris.urbanet.ch>
  References: <20010202091547.C634@samaris> <20010203162141.A3886@samaris.urbanet.ch>

* 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