Search Postgresql Archives

Re: funkiness with '1999-12-31 19:00:00-05'::timestamp with time zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 3, 2010 at 2:58 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
> Is this installation using float or integer timestamps?  If the former,
> it might be interesting to look at the subtraction result
>        ts - '1999-12-31 19:00:00-05'::timestamptz
> I'm thinking some of them might be different by submicrosecond amounts.

Ah yes, this is likely why. pg_config says CONFIGURE = ...
'--disable-integer-datetimes' ...

But I'm having trouble seeing for sure whether there are
submicrosecond parts of these timestamps. I just see a bunch of
'00:00:00' values with your query:

test=# SELECT ts - '1999-12-31 19:00:00-05'::timestamptz FROM
timestamps_test LIMIT 5;
 ?column?
----------
 00:00:00
 00:00:00
 00:00:00
 00:00:00
 00:00:00
(5 rows)

And SELECT EXTRACT(microseconds FROM ts) FROM timestamps_test also
just gives me zeroes. Is there a way for me to see for sure?

Josh

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux