pgsql: Allow setting sample ratio for auto_explain - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Allow setting sample ratio for auto_explain
Date
Msg-id E1aeNmb-000179-3d@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/92f03fe76fe6be683a8b7497579158b8a82b2c25

Modified Files
--------------
contrib/auto_explain/auto_explain.c | 31 ++++++++++++++++++++++++++++---
doc/src/sgml/auto-explain.sgml      | 18 ++++++++++++++++++
2 files changed, 46 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: psql: Don't automatically use expanded format when there's 1 col
Next
From: Tom Lane
Date:
Subject: pgsql: Minor additional refactoring of planner.c's PathTarget handling.