Add log_statement_sample_rate parameter

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 88bdbd3f746049834ae3cc972e6e650586ec3c9d
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-11-29T21:42:53Z
Releases: 12.0
Add log_statement_sample_rate parameter

This allows to set a lower log_min_duration_statement value without
incurring excessive log traffic (which reduces performance).  This can
be useful to analyze workloads with lots of short queries.

Author: Adrien Nayrat
Reviewed-by: David Rowley, Vik Fearing
Discussion: https://postgr.es/m/c30ee535-ee1e-db9f-fa97-146b9f62caed@anayrat.info

Files

Documentation touched

Discussion