Re: what is the date format in binary query results - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: what is the date format in binary query results
Date
Msg-id 20071108195551.GT2938@alvh.no-ip.org
Whole thread Raw
In response to Re: what is the date format in binary query results  (Reg Me Please <regmeplease@gmail.com>)
List pgsql-general
Reg Me Please wrote:
> Il Thursday 08 November 2007 16:18:58 Tom Lane ha scritto:
> > It's either an int8 representing microseconds away from 2000-01-01
> > 00:00:00 UTC, or a float8 representing seconds away from the same
> > origin.
>
> Does this mean that negative numbers are for timestamps before y2k?

Yes.

> Why and when there is a choice between int8 and float8 representation?

At compilation time, by the --enable-integer-datetimes flag to
configure.  You can find out whether the server you're currently
connected to uses integer datetimes with SHOW integer_datetimes.

--
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J
"The only difference is that Saddam would kill you on private, where the
Americans will kill you in public" (Mohammad Saleh, 39, a building contractor)

pgsql-general by date:

Previous
From: Lee Keel
Date:
Subject: Re: System V IPC on Windows
Next
From: "Thomas H."
Date:
Subject: subselect field "problem"