diff options
author | Tom Lane | 2016-08-17 19:51:10 +0000 |
---|---|---|
committer | Tom Lane | 2016-08-17 19:51:10 +0000 |
commit | 6657acc0100ec79304b868a6346db4d8eb2f6b83 (patch) | |
tree | de1172c48f602e9fd16d9925d4b2bb8402738d91 | |
parent | bfaaacc805aef9f07b4805c6a274256340b9cddf (diff) |
Fix -e option in contrib/intarray/bench/bench.pl.
As implemented, -e ran an EXPLAIN but then discarded the output, which
certainly seems pointless. Make it print to stdout instead. It's been
like that forever, so back-patch to all supported branches.
Daniel Gustafsson, reviewed by Andreas Scherbaum
Patch: <[email protected]>
-rwxr-xr-x | contrib/intarray/bench/bench.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl index 8746291114..395d61655f 100755 --- a/contrib/intarray/bench/bench.pl +++ b/contrib/intarray/bench/bench.pl @@ -92,7 +92,8 @@ if ($opt{v}) if ($opt{e}) { - $dbi->do("explain $sql"); + my @plan = map { "$_->[0]\n" } @{$dbi->selectall_arrayref("explain $sql")}; + print @plan; } my $t0 = [gettimeofday]; |