Test fallback path for duplicates [skip ci]

This commit is contained in:
Andrew Kane
2023-08-11 17:07:38 -07:00
parent 85ebb7714e
commit 8a807c01f6

View File

@@ -16,7 +16,7 @@ $node->safe_psql("postgres", "CREATE TABLE tst (v vector(3));");
sub insert_vectors
{
for my $i (1 .. 20) {
$node->safe_psql("postgres", "INSERT INTO tst VALUES ('[1,1,1]')");
$node->safe_psql("postgres", "INSERT INTO tst VALUES ('[1,1,1]');");
}
}
@@ -42,4 +42,16 @@ $node->safe_psql("postgres", "TRUNCATE tst;");
insert_vectors();
test_duplicates();
# Test fallback path
$node->pgbench(
"--no-vacuum --client=5 --transactions=100",
0,
[qr{actually processed}],
[qr{^$}],
"concurrent INSERTs",
{
"015_hnsw_duplicates" => "INSERT INTO tst VALUES ('[1,1,1]');"
}
);
done_testing();