]> granicus.if.org Git - postgresql/commit
Add log_statement_sample_rate parameter
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 29 Nov 2018 21:42:53 +0000 (18:42 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 29 Nov 2018 21:42:53 +0000 (18:42 -0300)
commit88bdbd3f746049834ae3cc972e6e650586ec3c9d
tree53a6007b47d766ac0e1309fa1fedc600411a51aa
parent826eff57c4c23f77314ba7151d3dc506ce0fa24c
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
doc/src/sgml/config.sgml
src/backend/tcop/postgres.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/utils/guc.h