Skip to content

Commit

Permalink
Fix brainfart in version macros for PG13 support.
Browse files Browse the repository at this point in the history
Somehow i managed to mess up the version macros for
PG13 specific code, so fix it.

Per report from Michael Gale (jocasta).
  • Loading branch information
psoo committed Sep 10, 2020
1 parent 0f3b55c commit 145dae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ifx_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "parser/parsetree.h"
#endif

#if PG_VERSION_NUM > 120000
#if PG_VERSION_NUM >= 130000
#include "common/hashfn.h"
#include "access/relation.h"
#endif
Expand Down
4 changes: 2 additions & 2 deletions ifx_fdw.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
* some list functions, like lnext(), so we have to deal
* with older major releases for backwards compatibility.
*/
#if PG_VERSION_NUM > 120000
#if PG_VERSION_NUM >= 130000
#define PG_LIST_NEXT_ITEM(l, c) lnext((l), (c))
#else
#define PG_LIST_NEXT_ITEM(l, c) lnext((c))
Expand All @@ -73,7 +73,7 @@
* from heap_* to relation_*, so we have to deal with it
* to support older major releases.
*/
#if PG_VERSION_NUM > 120000
#if PG_VERSION_NUM >= 130000
#define PG_RELATION_OPEN(r, l) relation_open((r), (l))
#define PG_RELATION_CLOSE(r, l) relation_close((r), (l))
#else
Expand Down

0 comments on commit 145dae2

Please sign in to comment.