Re: what is the date format in binary query results

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Reg Me Please <regmeplease(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Samantha Atkins <sjatkins(at)mac(dot)com>
Subject: Re: what is the date format in binary query results
Date: 2007-11-08 19:55:52
Message-ID: 20071108195551.GT2938@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yancho 2007-11-08 20:14:47 Open Source GIS System
Previous Message Lee Keel 2007-11-08 19:48:57 Re: System V IPC on Windows