Re: what is the date format in binary query results

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: what is the date format in binary query results
Дата
Msg-id 20071108195551.GT2938@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: what is the date format in binary query results  (Reg Me Please <regmeplease@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Lee Keel
Дата:
Сообщение: Re: System V IPC on Windows
Следующее
От: "Thomas H."
Дата:
Сообщение: subselect field "problem"