mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
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>
This commit is contained in:
parent
bfaaacc805
commit
6657acc010
@ -92,7 +92,8 @@ if ($opt{v})
|
|||||||
|
|
||||||
if ($opt{e})
|
if ($opt{e})
|
||||||
{
|
{
|
||||||
$dbi->do("explain $sql");
|
my @plan = map { "$_->[0]\n" } @{$dbi->selectall_arrayref("explain $sql")};
|
||||||
|
print @plan;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $t0 = [gettimeofday];
|
my $t0 = [gettimeofday];
|
||||||
|
Loading…
Reference in New Issue
Block a user