Re: Assert in pg_stat_statements

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Assert in pg_stat_statements
Дата
Msg-id CAM3SWZSAGraARhG+qzpN9JSdjHKmP6JLTbXB4BAAU+b53xGCDw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Assert in pg_stat_statements  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Aug 9, 2015 at 10:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> If there's actually a use case for that sort of thing, I would vote
> for moving the jumble-calculation code into core

I think that there'd be a good case for doing that for several other
reasons. It would be great to have a per-queryId
log_min_duration_statement, for example.

Most likely, this would work based on a system of grouping queries.
One grouping might be "SLA queries", that the user hopes to prevent
ever hobbling loading the application's home page. Outliers in this
group of queries are far more interesting to the user than any other,
or expectations are in some other way quite different from the
average. At the same time, maybe for reporting queries 60 seconds is
considered an unreasonably long time to wait.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: [patch] A \pivot command for psql
Следующее
От: Noah Misch
Дата:
Сообщение: Re: Precedence of standard comparison operators