From a7801b62f21bd051444bd1119cd3745ecc8e14ec Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 Sep 2011 13:23:41 -0400 Subject: 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. --- src/backend/utils/adt/pgstatfuncs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/pgstatfuncs.c') diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index d065542e047..7792b33da0d 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -14,13 +14,14 @@ */ #include "postgres.h" +#include "catalog/pg_type.h" #include "funcapi.h" +#include "libpq/ip.h" #include "miscadmin.h" #include "pgstat.h" -#include "catalog/pg_type.h" #include "utils/builtins.h" #include "utils/inet.h" -#include "libpq/ip.h" +#include "utils/timestamp.h" /* bogus ... these externs should be in a header file */ extern Datum pg_stat_get_numscans(PG_FUNCTION_ARGS); -- cgit v1.2.3