]> granicus.if.org Git - postgresql/commit
Fix failure of contrib/auto_explain to print per-node timing information.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Sep 2014 17:19:05 +0000 (13:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Sep 2014 17:19:05 +0000 (13:19 -0400)
commit5ff8c2d7d60d0084f577a920c9d614221bde283a
treea80aca4621c54361868907afc34a6d12155c11c1
parent8557a9f75fa0ac15892b21cb57fa19cce415142b
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.
contrib/auto_explain/auto_explain.c
doc/src/sgml/auto-explain.sgml