Allow setting sample ratio for auto_explain
authorMagnus Hagander <magnus@hagander.net>
Fri, 11 Mar 2016 14:08:34 +0000 (15:08 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 11 Mar 2016 14:08:34 +0000 (15:08 +0100)
commit92f03fe76fe6be683a8b7497579158b8a82b2c25
tree09b3625e28d98cd510141b685893e22b0d374692
parent69ab7b9d6c9b9e1d782ffad6e440a3615c63f621
Allow setting sample ratio for auto_explain

New configuration parameter auto_explain.sample_ratio makes it
possible to log just a fraction of the queries meeting the configured
threshold, to reduce the amount of logging.

Author: Craig Ringer and Julien Rouhaud
Review: Petr Jelinek
contrib/auto_explain/auto_explain.c
doc/src/sgml/auto-explain.sgml