diff options
| author | Heikki Linnakangas | 2020-08-17 07:50:13 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2020-08-17 07:50:13 +0000 |
| commit | 3941eb6341d8274dd63a26972042da6632533f2b (patch) | |
| tree | f92a8a4663e42ac5775b89fb4b3f5aea2c17a980 /src | |
| parent | d7ec8337f9093b097f08f94e5ecec36303ad73fd (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/nodes/params.c | 1 | ||||
| -rw-r--r-- | src/backend/utils/time/snapmgr.c | 2 | ||||
| -rw-r--r-- | src/include/access/xact.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/nodes/params.c b/src/backend/nodes/params.c index 1719119fc28..bce0c7e72b2 100644 --- a/src/backend/nodes/params.c +++ b/src/backend/nodes/params.c @@ -16,6 +16,7 @@ #include "postgres.h" #include "access/xact.h" +#include "fmgr.h" #include "mb/stringinfo_mb.h" #include "nodes/params.h" #include "parser/parse_node.h" diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 752af0c10df..c208538e2e5 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -53,6 +53,7 @@ #include "access/xact.h" #include "access/xlog.h" #include "catalog/catalog.h" +#include "datatype/timestamp.h" #include "lib/pairingheap.h" #include "miscadmin.h" #include "storage/predicate.h" @@ -67,6 +68,7 @@ #include "utils/resowner_private.h" #include "utils/snapmgr.h" #include "utils/syscache.h" +#include "utils/timestamp.h" /* diff --git a/src/include/access/xact.h b/src/include/access/xact.h index c59de9bebaf..df1b43a932e 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -16,11 +16,11 @@ #include "access/transam.h" #include "access/xlogreader.h" +#include "datatype/timestamp.h" #include "lib/stringinfo.h" #include "nodes/pg_list.h" #include "storage/relfilenode.h" #include "storage/sinval.h" -#include "utils/datetime.h" /* * Maximum size of Global Transaction ID (including '\0'). |
