Skip to content

Commit

Permalink
Merge pull request #21 from ossc-db/fix-unsupported-vernum
Browse files Browse the repository at this point in the history
Fix unsupported PG version number.
  • Loading branch information
amitlan authored Sep 28, 2016
2 parents 9fa2f6d + 644204b commit 9fa163c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pg_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void unused_bt_leafbuild(BTSpool *, BTSpool *);
#define _bt_spool unused_bt_spool
#define _bt_leafbuild unused_bt_leafbuild

#if PG_VERSION_NUM >= 90700
#if PG_VERSION_NUM >= 100000
#error unsupported PostgreSQL version
#elif PG_VERSION_NUM >= 90600
#include "nbtree/nbtsort-9.6.c"
Expand Down
2 changes: 1 addition & 1 deletion lib/pgut/pgut-be.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ extern Datum ExecFetchSlotTupleDatum(TupleTableSlot *slot);
#elif PG_VERSION_NUM < 90500
#define RelationSetNewRelfilenode(rel, xid) \
RelationSetNewRelfilenode((rel), (xid), (xid))
#elif PG_VERSION_NUM < 90700
#elif PG_VERSION_NUM < 100000
#define RelationSetNewRelfilenode(rel, xid) \
RelationSetNewRelfilenode((rel), (rel->rd_rel->relpersistence), \
(xid), (xid))
Expand Down

0 comments on commit 9fa163c

Please sign in to comment.