Re: what is the date format in binary query results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Reg Me Please <regmeplease(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Samantha Atkins <sjatkins(at)mac(dot)com>
Subject: Re: what is the date format in binary query results
Date: 2007-11-08 16:09:22
Message-ID: 25441.1194538162@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Reg Me Please <regmeplease(at)gmail(dot)com> writes:
> 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?

Right.

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

configure --enable-integer-datetimes.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-11-08 16:11:45 Re: "Resurrected" data files - problem?
Previous Message Krasimir Hristozov (InterMedia Ltd) 2007-11-08 16:06:20 INSERT performance deteriorates quickly during a large import