Skip to content

Commit 3941eb6

Browse files
committed
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.
1 parent d7ec833 commit 3941eb6

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

contrib/pg_prewarm/autoprewarm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "storage/smgr.h"
4747
#include "tcop/tcopprot.h"
4848
#include "utils/acl.h"
49+
#include "utils/datetime.h"
4950
#include "utils/guc.h"
5051
#include "utils/memutils.h"
5152
#include "utils/rel.h"

contrib/postgres_fdw/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "postgres_fdw.h"
2323
#include "storage/fd.h"
2424
#include "storage/latch.h"
25+
#include "utils/datetime.h"
2526
#include "utils/hsearch.h"
2627
#include "utils/inval.h"
2728
#include "utils/memutils.h"

src/backend/nodes/params.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "postgres.h"
1717

1818
#include "access/xact.h"
19+
#include "fmgr.h"
1920
#include "mb/stringinfo_mb.h"
2021
#include "nodes/params.h"
2122
#include "parser/parse_node.h"

src/backend/utils/time/snapmgr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include "access/xact.h"
5454
#include "access/xlog.h"
5555
#include "catalog/catalog.h"
56+
#include "datatype/timestamp.h"
5657
#include "lib/pairingheap.h"
5758
#include "miscadmin.h"
5859
#include "storage/predicate.h"
@@ -67,6 +68,7 @@
6768
#include "utils/resowner_private.h"
6869
#include "utils/snapmgr.h"
6970
#include "utils/syscache.h"
71+
#include "utils/timestamp.h"
7072

7173

7274
/*

src/include/access/xact.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
#include "access/transam.h"
1818
#include "access/xlogreader.h"
19+
#include "datatype/timestamp.h"
1920
#include "lib/stringinfo.h"
2021
#include "nodes/pg_list.h"
2122
#include "storage/relfilenode.h"
2223
#include "storage/sinval.h"
23-
#include "utils/datetime.h"
2424

2525
/*
2626
* Maximum size of Global Transaction ID (including '\0').

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy