Skip site navigation (1) Skip section navigation (2)

USECS_* constants undefined with float8 timestamps?

From: "Johann 'Myrkraverk' Oskarsson" <johann(at)2ndquadrant(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: USECS_* constants undefined with float8 timestamps?
Date: 2011-07-29 15:18:14
Message-ID: x662ml15ft.fsf@2ndquadrant.com (view raw or flat)
Thread:
Lists: 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 and Services  --+--
                                                                  |
   Blog: http://my.opera.com/myrkraverk/blog/


Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2011-07-29 15:27:02
Subject: Re: error: could not find pg_class tuple for index 2662
Previous:From: Robert HaasDate: 2011-07-29 15:17:30
Subject: Re: error: could not find pg_class tuple for index 2662

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group