summaryrefslogtreecommitdiff
path: root/contrib/spi
diff options
context:
space:
mode:
authorTom Lane2005-06-29 22:51:57 +0000
committerTom Lane2005-06-29 22:51:57 +0000
commitb5f7cff84f57a189ed5c9dd59efe8d2568649d0d (patch)
tree77b5a25a7c4a62145ba89a578018121b3246b82d /contrib/spi
parentc33d575899593a46a5b9a76e4e0ef6f9d81e55dd (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/spi')
-rw-r--r--contrib/spi/timetravel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c
index ba4838af659..0eae24a5769 100644
--- a/contrib/spi/timetravel.c
+++ b/contrib/spi/timetravel.c
@@ -8,6 +8,8 @@
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* -"- and triggers */
#include "miscadmin.h" /* for GetPgUserName() */
+#include "utils/nabstime.h"
+
#include <ctype.h> /* tolower () */
#define ABSTIMEOID 702 /* it should be in pg_type.h */