log_statement_sample_rate

Type: real
Défaut: 1
Min: 0
Max: 1
Contexte: superuser
Redémarrer: false
Depuis: 13

Determines the fraction of statements with duration exceeding log_min_duration_sample that will be logged. Sampling is stochastic, for example 0.5 means there is statistically one chance in two that any given statement will be logged. The default is 1.0, meaning to log all sampled statements. Setting this to zero disables sampled statement-duration logging, the same as setting log_min_duration_sample to -1. Only superusers can change this setting.

Commentaires