Declare hypo_index_check_uniqueness_compatibility for pg11+ only

This commit is contained in:
Julien Rouhaud 2019-01-20 19:41:33 +01:00
parent acd87ef01a
commit 55d96e715d

View file

@ -101,8 +101,10 @@ static void hypo_estimate_index_simple(hypoIndex *entry,
static void hypo_estimate_index(hypoIndex *entry, RelOptInfo *rel,
PlannerInfo *root);
static int hypo_estimate_index_colsize(hypoIndex *entry, int col);
#if PG_VERSION_NUM >= 110000
static void hypo_index_check_uniqueness_compatibility(IndexStmt *stmt,
Oid relid, hypoIndex *entry);
#endif
static void hypo_index_pfree(hypoIndex *entry);
static bool hypo_index_remove(Oid indexid);
static const hypoIndex *hypo_index_store_parsetree(IndexStmt *node,
@ -699,7 +701,6 @@ hypo_index_store_parsetree(IndexStmt *node, const char *queryString)
}
#if PG_VERSION_NUM >= 110000
/*
* check for uniqueness compatibility with (hypothetically)
* partitioned tables