This commit is contained in:
Andrew Kane
2023-08-01 19:33:38 -07:00
parent ae78f732ef
commit e2a8dd6594
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ UpdateNeighborPages(Relation index, HnswElement e, int m, List *updates)
idx = HnswGetIndex(update, m);
/* Make robust against issues */
if (idx < HNSW_NEIGHBOR_COUNT(itemid))
if (idx < (int) HNSW_NEIGHBOR_COUNT(itemid))
{
HnswNeighborTuple ntup = (HnswNeighborTuple) PageGetItem(page, itemid);

View File

@@ -39,6 +39,6 @@ $node->safe_psql("postgres",
# Check size
my $new_size = $node->safe_psql("postgres", "SELECT pg_total_relation_size('tst_v_idx');");
# TODO Improve
cmp_ok($new_size, "<=", $size * 1.75, "size does not increase too much");
cmp_ok($new_size, "<=", $size * 2, "size does not increase too much");
done_testing();