From 92f03fe76fe6be683a8b7497579158b8a82b2c25 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 11 Mar 2016 15:08:34 +0100 Subject: 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 --- doc/src/sgml/auto-explain.sgml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/auto-explain.sgml b/doc/src/sgml/auto-explain.sgml index d527208271f..6f1bde0d17e 100644 --- a/doc/src/sgml/auto-explain.sgml +++ b/doc/src/sgml/auto-explain.sgml @@ -203,6 +203,24 @@ LOAD 'auto_explain'; + + + + auto_explain.sample_ratio (real) + + auto_explain.sample_ratio configuration parameter + + + + + auto_explain.sample_ratio (floating point) + causes auto_explain to only explain a fraction of the statements in each + session. The default is 1, meaning explain all the queries. In case + of nested statements, either all will be explained or none. Only + superusers can change this setting. + + + -- cgit v1.2.3