Fix various compilation warnings

This commit is contained in:
Julien Rouhaud 2018-11-17 20:44:27 +01:00
parent b2f8fc6c48
commit 1a9d1876bf
3 changed files with 5 additions and 1 deletions

View file

@ -434,7 +434,7 @@ hypo_process_inval(void)
Oid relid = lfirst_oid(lc);
hypoTable *entry = hypo_find_table(relid, false);
char *relname = get_rel_name(relid);
bool found;
bool found = false;
/*
* The pending invalidations should be filtered and recorded after

View file

@ -358,7 +358,9 @@ hypo_index_store_parsetree(IndexStmt *node, const char *queryString)
{
Relation relation = relation_open(relid, AccessShareLock);
bool ok = relation->rd_partkey == NULL;
#if PG_VERSION_NUM >= 110000
bool relispartition = relation->rd_rel->relispartition;
#endif
relation_close(relation, NoLock);

View file

@ -420,8 +420,10 @@ hypo_generate_partitiondesc(hypoTable *parent)
int ndatums = 0;
int default_index = -1;
#if PG_VERSION_NUM >= 110000
/* Hash partitioning specific */
PartitionHashBound **hbounds = NULL;
#endif
/* List partitioning specific */
PartitionListValue **all_values = NULL;