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.
Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3941eb6341d8274dd63a26972042da6632533f2b Modified Files -------------- contrib/pg_prewarm/autoprewarm.c | 1 + contrib/postgres_fdw/connection.c | 1 + src/backend/nodes/params.c | 1 + src/backend/utils/time/snapmgr.c | 2 ++ src/include/access/xact.h | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-)
