summaryrefslogtreecommitdiff
path: root/contrib/intarray/bench
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/intarray/bench')
-rwxr-xr-xcontrib/intarray/bench/bench.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl
index 2e30956721c..66df02dfc11 100755
--- a/contrib/intarray/bench/bench.pl
+++ b/contrib/intarray/bench/bench.pl
@@ -42,7 +42,9 @@ if ( $opt{a} ) {
push @where, "message.sections @ '{$opt{s}}'";
} else {
foreach my $sid ( split(/[,\s]+/, $opt{s} )) {
- push @where, "EXISTS ( select message_section_map.mid from message_section_map where message.mid=message_section_map.mid and message_section_map.sid = $sid )";
+ push @where, "message.mid = msp$sid.mid";
+ push @where, "msp$sid.sid = $sid";
+ $table{"message_section_map msp$sid"}=1;
}
}
} else {