Fixed test style

This commit is contained in:
Andrew Kane
2022-02-06 20:19:20 -08:00
parent d5da22f24b
commit da88217fd8
3 changed files with 21 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
root = true root = true
[*.{c,h}] [*.{c,h,pl}]
indent_style = tab indent_style = tab
indent_size = tab indent_size = tab
tab_width = 4 tab_width = 4

View File

@@ -34,9 +34,10 @@ sub test_index_replay
my $r2 = rand(); my $r2 = rand();
my $r3 = rand(); my $r3 = rand();
my $queries = qq(SET enable_seqscan=off; my $queries = qq(
SELECT * FROM tst ORDER BY v <-> '[$r1,$r2,$r3]' LIMIT 10; SET enable_seqscan = off;
); SELECT * FROM tst ORDER BY v <-> '[$r1,$r2,$r3]' LIMIT 10;
);
# Run test queries and compare their result # Run test queries and compare their result
my $primary_result = $node_primary->safe_psql("postgres", $queries); my $primary_result = $node_primary->safe_psql("postgres", $queries);

View File

@@ -13,10 +13,10 @@ sub test_recall
my ($probes, $min) = @_; my ($probes, $min) = @_;
my $actual = $node->safe_psql("postgres", qq( my $actual = $node->safe_psql("postgres", qq(
SET enable_seqscan = off; SET enable_seqscan = off;
SET ivfflat.probes = $probes; SET ivfflat.probes = $probes;
SELECT i FROM tst ORDER BY v <-> '[0.5,0.5,0.5]' LIMIT 10; SELECT i FROM tst ORDER BY v <-> '[0.5,0.5,0.5]' LIMIT 10;
)); ));
my @actual_ids = split("\n", $actual); my @actual_ids = split("\n", $actual);
my %actual_set = map { $_ => 1 } @actual_ids; my %actual_set = map { $_ => 1 } @actual_ids;