diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-09 13:23:41 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-09 13:23:41 -0400 |
| commit | a7801b62f21bd051444bd1119cd3745ecc8e14ec (patch) | |
| tree | 6fadb50519ea12ee48d87f89835a027b1eb493ed /src/include/access | |
| parent | d63de337f3e235f02d79a1df79dddbb002e9fd4e (diff) | |
| download | postgresql-a7801b62f21bd051444bd1119cd3745ecc8e14ec.tar.gz | |
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/include/access')
| -rw-r--r-- | src/include/access/gist_private.h | 1 | ||||
| -rw-r--r-- | src/include/access/xlog.h | 2 | ||||
| -rw-r--r-- | src/include/access/xlog_internal.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h index 6ce2c7568d..8b3cb01ae4 100644 --- a/src/include/access/gist_private.h +++ b/src/include/access/gist_private.h @@ -16,6 +16,7 @@ #include "access/gist.h" #include "access/itup.h" +#include "fmgr.h" #include "storage/bufmgr.h" #include "storage/buffile.h" #include "utils/rbtree.h" diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 3771ccbec4..e4a13a18ab 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -13,10 +13,10 @@ #include "access/rmgr.h" #include "access/xlogdefs.h" +#include "datatype/timestamp.h" #include "lib/stringinfo.h" #include "storage/buf.h" #include "utils/pg_crc.h" -#include "utils/timestamp.h" /* * The overall layout of an XLOG record is: diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index 68c0691015..4eaa243948 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -17,6 +17,8 @@ #define XLOG_INTERNAL_H #include "access/xlog.h" +#include "fmgr.h" +#include "pgtime.h" #include "storage/block.h" #include "storage/relfilenode.h" |
