1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Optimize benchmark query and update benchmark's results.

This commit is contained in:
Teodor Sigaev
2005-10-03 14:41:42 +00:00
parent a87174dca1
commit 8c73dfcc8b
2 changed files with 14 additions and 12 deletions

View File

@ -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 {