Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit442e12d

Browse files
committed
ported to 9.6devel
1 parentbcdef9d commit442e12d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎crossmatch.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#ifPG_VERSION_NUM >=90300
3535
#include"access/htup_details.h"
3636
#endif
37+
#ifPG_VERSION_NUM >=90600
38+
#include"catalog/pg_am.h"
39+
#endif
3740
#include"catalog/namespace.h"
3841
#include"funcapi.h"
3942
#include"nodes/pg_list.h"
@@ -106,7 +109,11 @@ PG_FUNCTION_INFO_V1(crossmatch);
106109
staticRelation
107110
checkOpenedRelation(Relationr,OidPgAmOid)
108111
{
112+
#ifPG_VERSION_NUM >=90600
113+
if (r->rd_amroutine==NULL)
114+
#else
109115
if (r->rd_am==NULL)
116+
#endif
110117
elog(ERROR,"Relation %s.%s is not an index",
111118
get_namespace_name(RelationGetNamespace(r)),
112119
RelationGetRelationName(r));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp