projects
/
gevel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8c9c26
)
9.6 support
author
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 23 Mar 2016 12:54:22 +0000
(15:54 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 23 Mar 2016 12:54:22 +0000
(15:54 +0300)
gevel.c
patch
|
blob
|
history
diff --git
a/gevel.c
b/gevel.c
index
7a8c891
..
7887114
100644
(file)
--- a/
gevel.c
+++ b/
gevel.c
@@
-18,6
+18,9
@@
#endif
#include "access/heapam.h"
#include "catalog/index.h"
#endif
#include "access/heapam.h"
#include "catalog/index.h"
+#if PG_VERSION_NUM >= 90600
+#include <catalog/pg_am.h>
+#endif
#include "miscadmin.h"
#include "storage/lmgr.h"
#include "catalog/namespace.h"
#include "miscadmin.h"
#include "storage/lmgr.h"
#include "catalog/namespace.h"
@@
-64,7
+67,7
@@
typedef struct {
int maxlevel;
text *txt;
char *ptr;
int maxlevel;
text *txt;
char *ptr;
- int len;
+ int
len;
} IdxInfo;
static Relation checkOpenedRelation(Relation r, Oid PgAmOid);
} IdxInfo;
static Relation checkOpenedRelation(Relation r, Oid PgAmOid);
@@
-142,7
+145,7
@@
gin_index_close(Relation rel) {
static Relation
checkOpenedRelation(Relation r, Oid PgAmOid) {
static Relation
checkOpenedRelation(Relation r, Oid PgAmOid) {
- if ( r->rd_
am
== NULL )
+ if ( r->rd_
index
== NULL )
elog(ERROR, "Relation %s.%s is not an index",
get_namespace_name(RelationGetNamespace(r)),
RelationGetRelationName(r)
elog(ERROR, "Relation %s.%s is not an index",
get_namespace_name(RelationGetNamespace(r)),
RelationGetRelationName(r)