mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Fix expanding childrel order for pg10
This commit is contained in:
parent
2928af312d
commit
d1cacda2a0
1 changed files with 4 additions and 0 deletions
|
|
@ -632,8 +632,10 @@ hypo_generate_partitiondesc(hypoTable *parent)
|
|||
i++;
|
||||
}
|
||||
|
||||
#if PG_VERSION_NUM >= 110000
|
||||
qsort_arg(all_values, ndatums, sizeof(PartitionListValue *),
|
||||
qsort_partition_list_value_cmp, (void *) key);
|
||||
#endif
|
||||
}
|
||||
else if (key->strategy == PARTITION_STRATEGY_RANGE)
|
||||
{
|
||||
|
|
@ -691,11 +693,13 @@ hypo_generate_partitiondesc(hypoTable *parent)
|
|||
Assert(ndatums == nparts * 2 ||
|
||||
(default_index != -1 && ndatums == (nparts - 1) * 2));
|
||||
|
||||
#if PG_VERSION_NUM >= 110000
|
||||
/* Sort all the bounds in ascending order */
|
||||
qsort_arg(all_bounds, ndatums,
|
||||
sizeof(PartitionRangeBound *),
|
||||
qsort_partition_rbound_cmp,
|
||||
(void *) key);
|
||||
#endif
|
||||
|
||||
/* Save distinct bounds from all_bounds into rbounds. */
|
||||
rbounds = (PartitionRangeBound **)
|
||||
|
|
|
|||
Loading…
Reference in a new issue