summaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_ts.c
diff options
context:
space:
mode:
authorTom Lane2005-06-29 22:51:57 +0000
committerTom Lane2005-06-29 22:51:57 +0000
commit8013e4e2a87c13baa834ae0fc24bd30266277c8f (patch)
treec3d0f2b452c4df5fc5dbfcadda507c9942e6522c /contrib/btree_gist/btree_ts.c
parent4f7685e7176b74a9d04954acb1cfc482f7a7b842 (diff)
Clean up the rather historically encumbered interface to now() and
current time: provide a GetCurrentTimestamp() function that returns current time in the form of a TimestampTz, instead of separate time_t and microseconds fields. This is what all the callers really want anyway, and it eliminates low-level dependencies on AbsoluteTime, which is a deprecated datatype that will have to disappear eventually.
Diffstat (limited to 'contrib/btree_gist/btree_ts.c')
-rw-r--r--contrib/btree_gist/btree_ts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/btree_gist/btree_ts.c b/contrib/btree_gist/btree_ts.c
index 3d5defe3db..37f72d3a51 100644
--- a/contrib/btree_gist/btree_ts.c
+++ b/contrib/btree_gist/btree_ts.c
@@ -1,6 +1,9 @@
#include "btree_gist.h"
#include "btree_utils_num.h"
+#include "utils/datetime.h"
+
+
typedef struct
{
Timestamp lower;