Skip to content

Commit c3960cd

Browse files
committed
Include a new header file to build with PostgreSQL 9.5
By commit 7b1c2a0 in PostgreSQL, builtins.h is splitted to a new header file ruleutils.h. The usage of pg_get_indexdef_string in lib/repack.c is affected.
1 parent f255a41 commit c3960cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/repack.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
#include "access/htup_details.h"
3737
#endif
3838

39+
/* builtins.h was reorganized for 9.5, so now we need this header */
40+
#if PG_VERSION_NUM >= 90500
41+
#include "utils/ruleutils.h"
42+
#endif
43+
3944
PG_MODULE_MAGIC;
4045

4146
extern Datum PGUT_EXPORT repack_version(PG_FUNCTION_ARGS);

0 commit comments

Comments
 (0)