Commit 3941eb63 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Make xact.h usable in frontend.

xact.h included utils/datetime.h, which cannot be used in the frontend
(it includes fmgr.h, which needs Datum). But xact.h only needs the
definition of TimestampTz from it, which is available directly in
datatypes/timestamp.h. Change xact.h to include that instead of
utils/datetime.h, so that it can be used in client programs.
parent d7ec8337
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include "storage/smgr.h" #include "storage/smgr.h"
#include "tcop/tcopprot.h" #include "tcop/tcopprot.h"
#include "utils/acl.h" #include "utils/acl.h"
#include "utils/datetime.h"
#include "utils/guc.h" #include "utils/guc.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "utils/rel.h" #include "utils/rel.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "postgres_fdw.h" #include "postgres_fdw.h"
#include "storage/fd.h" #include "storage/fd.h"
#include "storage/latch.h" #include "storage/latch.h"
#include "utils/datetime.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/inval.h" #include "utils/inval.h"
#include "utils/memutils.h" #include "utils/memutils.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "postgres.h" #include "postgres.h"
#include "access/xact.h" #include "access/xact.h"
#include "fmgr.h"
#include "mb/stringinfo_mb.h" #include "mb/stringinfo_mb.h"
#include "nodes/params.h" #include "nodes/params.h"
#include "parser/parse_node.h" #include "parser/parse_node.h"
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
#include "access/xact.h" #include "access/xact.h"
#include "access/xlog.h" #include "access/xlog.h"
#include "catalog/catalog.h" #include "catalog/catalog.h"
#include "datatype/timestamp.h"
#include "lib/pairingheap.h" #include "lib/pairingheap.h"
#include "miscadmin.h" #include "miscadmin.h"
#include "storage/predicate.h" #include "storage/predicate.h"
...@@ -67,6 +68,7 @@ ...@@ -67,6 +68,7 @@
#include "utils/resowner_private.h" #include "utils/resowner_private.h"
#include "utils/snapmgr.h" #include "utils/snapmgr.h"
#include "utils/syscache.h" #include "utils/syscache.h"
#include "utils/timestamp.h"
/* /*
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
#include "access/transam.h" #include "access/transam.h"
#include "access/xlogreader.h" #include "access/xlogreader.h"
#include "datatype/timestamp.h"
#include "lib/stringinfo.h" #include "lib/stringinfo.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "storage/relfilenode.h" #include "storage/relfilenode.h"
#include "storage/sinval.h" #include "storage/sinval.h"
#include "utils/datetime.h"
/* /*
* Maximum size of Global Transaction ID (including '\0'). * Maximum size of Global Transaction ID (including '\0').
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment