Make xact.h usable in frontend.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_prewarm/autoprewarm.c | modified | +1 −0 |
| contrib/postgres_fdw/connection.c | modified | +1 −0 |
| src/backend/nodes/params.c | modified | +1 −0 |
| src/backend/utils/time/snapmgr.c | modified | +2 −0 |
| src/include/access/xact.h | modified | +1 −1 |