Re: auto_explain WAS: RFC: Timing Events

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: auto_explain WAS: RFC: Timing Events
Дата
Msg-id
CA+TgmoYE8_VGV2GC41ZHxkupmHcOO3X6F+haEQZ0uZFn_4Nfig@mail.gmail.com
Ответ на
Список
Дерево обсуждения
RFC: Timing Events Greg Smith <greg@2ndQuadrant.com>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events Greg Smith <greg@2ndQuadrant.com>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events Satoshi Nagayasu <snaga@uptime.jp>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events Tom Lane <tgl@sss.pgh.pa.us>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events Tom Lane <tgl@sss.pgh.pa.us>
Re: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: RFC: Timing Events Tom Lane <tgl@sss.pgh.pa.us>
Re: RFC: Timing Events Jeff Janes <jeff.janes@gmail.com>
Re: auto_explain WAS: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: auto_explain WAS: RFC: Timing Events Jeff Janes <jeff.janes@gmail.com>
Re: auto_explain WAS: RFC: Timing Events Josh Berkus <josh@agliodbs.com>
Re: auto_explain WAS: RFC: Timing Events Greg Smith <greg@2ndQuadrant.com>
Re: auto_explain WAS: RFC: Timing Events Alvaro Herrera <alvherre@2ndquadrant.com>
Re: auto_explain WAS: RFC: Timing Events Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: auto_explain WAS: RFC: Timing Events Jim Nasby <jim@nasby.net>
Re: auto_explain WAS: RFC: Timing Events Robert Haas <robertmhaas@gmail.com>
Re: auto_explain WAS: RFC: Timing Events Greg Stark <stark@mit.edu>
Re: auto_explain WAS: RFC: Timing Events Robert Haas <robertmhaas@gmail.com>
Re: auto_explain WAS: RFC: Timing Events Jim Nasby <jim@nasby.net>
Re: RFC: Timing Events Pavel Stehule <pavel.stehule@gmail.com>
Re: RFC: Timing Events Jeff Janes <jeff.janes@gmail.com>
Re: RFC: Timing Events Michael Paquier <michael.paquier@gmail.com>
On Mon, Feb 25, 2013 at 10:22 PM, Greg Stark  wrote:
> On Mon, Feb 25, 2013 at 8:26 PM, Robert Haas  wrote:
>> On Sun, Feb 24, 2013 at 7:27 PM, Jim Nasby  wrote:
>>> We actually do that in our application and have discovered that random
>>> sampling can end up significantly skewing your data.
>>
>> /me blinks.
>>
>> How so?
>
> Sampling is a pretty big area of statistics. There are dozens of
> sampling methods to deal with various problems that occur with
> different types of data distributions.
>
> One problem is if you have some very rare events then random sampling
> can produce odd results since those rare events will drop out entirely
> unless your sample is very large whereas less rare events are
> represented proportionally. There are sampling methods that ensure
> that x% of the rare events are included even if those rare events are
> less than x% of your total data set. One of those might be appropriate
> to use for profiling data when you're looking for rare slow queries
> amongst many faster queries.

I'll grant all that, but it still seems to me like x% of all queries
plus all queries running longer than x milliseconds would cover most
of the interesting cases.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_xlogdump
От: Robert Haas
Дата:
FAQ