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 /contrib/pg_prewarm/autoprewarm.c | |
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 'contrib/pg_prewarm/autoprewarm.c')
-rw-r--r-- | contrib/pg_prewarm/autoprewarm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pg_prewarm/autoprewarm.c b/contrib/pg_prewarm/autoprewarm.c index d797095458a..c32ddc56fdb 100644 --- a/contrib/pg_prewarm/autoprewarm.c +++ b/contrib/pg_prewarm/autoprewarm.c @@ -46,6 +46,7 @@ #include "storage/smgr.h" #include "tcop/tcopprot.h" #include "utils/acl.h" +#include "utils/datetime.h" #include "utils/guc.h" #include "utils/memutils.h" #include "utils/rel.h" |