Fix failure of contrib/auto_explain to print per-node timing information.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5ff8c2d7d60d0084f577a920c9d614221bde283a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-09-19T17:19:05Z
Releases: 9.2.10
Fix failure of contrib/auto_explain to print per-node timing information.

This has been broken since commit af7914c6627bcf0b0ca614e9ce95d3f8056602bf,
which added the EXPLAIN (TIMING) option.  Although that commit included
updates to auto_explain, they evidently weren't tested very carefully,
because the code failed to print node timings even when it should, due to
failure to set es.timing in the ExplainState struct.  Reported off-list by
Neelakanth Nadgir of Salesforce.

In passing, clean up the documentation for auto_explain's options a
little bit, including re-ordering them into what seems to me a more
logical order.

Files

PathChange+/−
contrib/auto_explain/auto_explain.c modified +2 −3
doc/src/sgml/auto-explain.sgml modified +41 −31