mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Simplified test [skip ci]
This commit is contained in:
@@ -26,7 +26,7 @@ $node->safe_psql("postgres", "DELETE FROM tst WHERE i % 10 != 1;");
|
|||||||
|
|
||||||
my $exp = $node->safe_psql("postgres", qq(
|
my $exp = $node->safe_psql("postgres", qq(
|
||||||
SET enable_indexscan = off;
|
SET enable_indexscan = off;
|
||||||
SELECT i FROM tst ORDER BY v <-> (SELECT v FROM tst WHERE i = 1);
|
SELECT i FROM tst ORDER BY v <-> '[0,0,0]';
|
||||||
));
|
));
|
||||||
|
|
||||||
# Run twice to make sure correct tuples marked as dead
|
# Run twice to make sure correct tuples marked as dead
|
||||||
@@ -35,7 +35,7 @@ for (1 .. 2)
|
|||||||
my $res = $node->safe_psql("postgres", qq(
|
my $res = $node->safe_psql("postgres", qq(
|
||||||
SET enable_seqscan = off;
|
SET enable_seqscan = off;
|
||||||
SET ivfflat.probes = 100;
|
SET ivfflat.probes = 100;
|
||||||
SELECT i FROM tst ORDER BY v <-> (SELECT v FROM tst WHERE i = 1);
|
SELECT i FROM tst ORDER BY v <-> '[0,0,0]';
|
||||||
));
|
));
|
||||||
is($res, $exp);
|
is($res, $exp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user