Allow setting sample ratio for auto_explain

Magnus Hagander <magnus@hagander.net>

Commit: 92f03fe76fe6be683a8b7497579158b8a82b2c25
Author: Magnus Hagander <magnus@hagander.net>
Date: 2016-03-11T14:08:34Z
Releases: 9.6.0
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

Files

PathChange+/−
contrib/auto_explain/auto_explain.c modified +28 −3
doc/src/sgml/auto-explain.sgml modified +18 −0

Documentation touched