Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c1e2e5

Browse files
committed
Fix incompatibilities with 13 version
1 parent 12087ce commit 1c1e2e5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deparse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#include "utils/syscache.h"
5353
#include "utils/typcache.h"
5454

55+
#include "vops.h"
5556

5657
/*
5758
* Global context for foreign_expr_walker's search of an expression tree.

vops.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,11 @@ typedef struct {
158158

159159
extern vops_type vops_get_type(Oid typid);
160160

161+
#if PG_VERSION_NUM>=130000
162+
#define heap_open(oid, lock) table_open(oid, lock)
163+
#define heap_close(oid, lock) table_close(oid, lock)
164+
#define heap_openrv_extended(rel, lockmode, missing_ok) table_openrv_extended(rel, lockmode, missing_ok)
165+
#endif
166+
167+
161168
#endif

0 commit comments

Comments
 (0)