mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Fix various compilation warnings
This commit is contained in:
parent
b2f8fc6c48
commit
1a9d1876bf
3 changed files with 5 additions and 1 deletions
2
hypopg.c
2
hypopg.c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue