Skip to content

Commit b111fd2

Browse files
committed
Fix includes for different versions of postgres
1 parent bf93b99 commit b111fd2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/partition_creation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "pathman.h"
1515
#include "pathman_workers.h"
1616
#include "xact_handling.h"
17+
#include "compat/pg_compat.h"
1718

1819
#include "access/htup_details.h"
1920
#include "access/reloptions.h"

src/relation_info.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@
3535
#include "utils/lsyscache.h"
3636
#include "utils/typcache.h"
3737

38+
#if PG_VERSION_NUM < 90600
39+
#include "optimizer/planmain.h"
40+
#endif
41+
3842
#if PG_VERSION_NUM >= 90600
3943
#include "catalog/pg_constraint_fn.h"
44+
#include "nodes/nodeFuncs.h"
4045
#endif
4146

4247

0 commit comments

Comments
 (0)