postgres.git / summary / log / commit / refs
commit 60bb1bb1224dc5c6d8dd8f5829f354ace74aba18
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed Aug 17 19:51:11 2016 +0000
First released in: 10.0, 9.1.24, 9.2.19, 9.3.15, 9.4.10, 9.5.5, 9.6.0
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: <B97BDCB7-A3B3-4734-90B5-EDD586941629@yesql.se>
contrib/intarray/bench/bench.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl
index 87462911147..395d61655f2 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];
[parent: 9d5bf77b59e6]