aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-09 13:23:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-09 13:23:41 -0400
commita7801b62f21bd051444bd1119cd3745ecc8e14ec (patch)
tree6fadb50519ea12ee48d87f89835a027b1eb493ed /src/backend/utils/adt/misc.c
parentd63de337f3e235f02d79a1df79dddbb002e9fd4e (diff)
downloadpostgresql-a7801b62f21bd051444bd1119cd3745ecc8e14ec.tar.gz
postgresql-a7801b62f21bd051444bd1119cd3745ecc8e14ec.zip
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 'src/backend/utils/adt/misc.c')
-rw-r--r--src/backend/utils/adt/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c
index 5a77340bdb0..63ec6fd9d4e 100644
--- a/src/backend/utils/adt/misc.c
+++ b/src/backend/utils/adt/misc.c
@@ -20,8 +20,8 @@
#include <math.h>
#include "catalog/catalog.h"
-#include "catalog/pg_type.h"
#include "catalog/pg_tablespace.h"
+#include "catalog/pg_type.h"
#include "commands/dbcommands.h"
#include "funcapi.h"
#include "miscadmin.h"
@@ -30,8 +30,9 @@
#include "storage/fd.h"
#include "storage/pmsignal.h"
#include "storage/procarray.h"
-#include "utils/builtins.h"
#include "tcop/tcopprot.h"
+#include "utils/builtins.h"
+#include "utils/timestamp.h"
#define atooid(x) ((Oid) strtoul((x), NULL, 10))