idea: log_statement_sample_rate - bottom limit for sampling

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: idea: log_statement_sample_rate - bottom limit for sampling
Date: 2019-06-06 08:38:04
Message-ID: CAFj8pRDS8tQ3Wviw9=AvODyUciPSrGeMhJi_WPE+EB8+4gLL-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

I like the idea of sampling slow statements via log_statement_sample_rate.
But I miss some parameter that can ensure so every query executed over this
limit is logged.

Can we introduce new option

log_statement_sampling_limit

The query with execution time over this limit is logged every time.

What do you think about this?

Regards

Pavel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gilles Darold 2019-06-06 08:48:28 Re: idea: log_statement_sample_rate - bottom limit for sampling
Previous Message Masahiko Sawada 2019-06-06 08:16:30 Small review comment on pg_checksums