summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane2011-09-09 17:23:41 +0000
committerTom Lane2011-09-09 17:23:41 +0000
commita7801b62f21bd051444bd1119cd3745ecc8e14ec (patch)
tree6fadb50519ea12ee48d87f89835a027b1eb493ed /contrib
parentd63de337f3e235f02d79a1df79dddbb002e9fd4e (diff)
Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h.
As per my recent proposal, this refactors things so that these typedefs and macros are available in a header that can be included in frontend-ish code. I also changed various headers that were undesirably including utils/timestamp.h to include datatype/timestamp.h instead. Unsurprisingly, this showed that half the system was getting utils/timestamp.h by way of xlog.h. No actual code changes here, just header refactoring.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/btree_gist/btree_utils_num.c1
-rw-r--r--contrib/spi/moddatetime.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/contrib/btree_gist/btree_utils_num.c b/contrib/btree_gist/btree_utils_num.c
index 2b1252b78e2..832dbc500b1 100644
--- a/contrib/btree_gist/btree_utils_num.c
+++ b/contrib/btree_gist/btree_utils_num.c
@@ -7,6 +7,7 @@
#include "btree_utils_num.h"
#include "utils/cash.h"
#include "utils/date.h"
+#include "utils/timestamp.h"
GISTENTRY *
diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c
index d0bc4078f9e..2ec96540368 100644
--- a/contrib/spi/moddatetime.c
+++ b/contrib/spi/moddatetime.c
@@ -19,6 +19,7 @@ OH, me, I'm Terry Mackintosh <[email protected]>
#include "executor/spi.h"
#include "commands/trigger.h"
#include "utils/rel.h"
+#include "utils/timestamp.h"
PG_MODULE_MAGIC;