USECS_* constants undefined with float8 timestamps?

Поиск
Список
Период
Сортировка
От Johann 'Myrkraverk' Oskarsson
Тема USECS_* constants undefined with float8 timestamps?
Дата
Msg-id x662ml15ft.fsf@2ndquadrant.com
обсуждение исходный текст
Ответы Re: USECS_* constants undefined with float8 timestamps?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi all,

I just noticed that the USECS_* constants are not defined when the server
is compiled without integer dates and timestamps.

Explicitly, timestamp.h is

#ifdef HAVE_INT64_TIMESTAMP
#define USECS_PER_DAY    INT64CONST(86400000000)
#define USECS_PER_HOUR    INT64CONST(3600000000)
#define USECS_PER_MINUTE INT64CONST(60000000)
#define USECS_PER_SEC    INT64CONST(1000000)
#endif

Is there a particular reason for this?  Even with float8 timestamps
there are uses for these constants in extensions.


--   Johann Oskarsson                http://www.2ndquadrant.com/    |[]  PostgreSQL Development, 24x7 Support, Training
andServices  --+--                                                                 |  Blog:
http://my.opera.com/myrkraverk/blog/



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: error: could not find pg_class tuple for index 2662
Следующее
От: Tom Lane
Дата:
Сообщение: Re: error: could not find pg_class tuple for index 2662