Sets the fraction of transactions whose statements are all logged, in addition to statements logged for other reasons. It applies to each new transaction regardless of its statements' durations. Sampling is stochastic, for example
0.1 means there is statistically one chance in ten that any given transaction will be logged.
log_transaction_sample_rate can be helpful to construct a sample of transactions. The default is
0, meaning not to log statements from any additional transactions. Setting this to
1 logs all statements of all transactions. Only superusers and users with the appropriate
SET privilege can change this setting.
Like all statement-logging options, this option can add significant overhead.