From b5f7cff84f57a189ed5c9dd59efe8d2568649d0d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 29 Jun 2005 22:51:57 +0000 Subject: 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. --- contrib/btree_gist/btree_ts.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/btree_gist') diff --git a/contrib/btree_gist/btree_ts.c b/contrib/btree_gist/btree_ts.c index 3d5defe3db0..37f72d3a516 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; -- cgit v1.2.3