Re: Is it useful to record whether plans are generic or custom?

Поиск
Список
Период
Сортировка
Искать
От
torikoshia
Тема
Re: Is it useful to record whether plans are generic or custom?
Дата
Msg-id
4ad1099133c09f4690ff212d3d4867de@oss.nttdata.com
Ответ на
Список
Дерево обсуждения
Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? legrand legrand <legrand_legrand@hotmail.com>
Re: Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? legrand legrand <legrand_legrand@hotmail.com>
Re: Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Re: Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Atsushi Torikoshi <atorik@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Michael Paquier <michael@paquier.xyz>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? legrand legrand <legrand_legrand@hotmail.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Pavel Stehule <pavel.stehule@gmail.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Pavel Stehule <pavel.stehule@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Chengxi Sun <sunchengxi@highgo.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Is it useful to record whether plans are generic or custom? torikoshia <torikoshia@oss.nttdata.com>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Re: Is it useful to record whether plans are generic or custom? Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
RE: Is it useful to record whether plans are generic or custom? legrand legrand <legrand_legrand@hotmail.com>
Re: Is it useful to record whether plans are generic or custom? Fujii Masao <masao.fujii@oss.nttdata.com>
RE: Is it useful to record whether plans are generic or custom? legrand legrand <legrand_legrand@hotmail.com>
On 2020-09-29 02:39, legrand legrand wrote:
> Hi Atsushi,
> 
> +1: Your proposal is a good answer for time based performance analysis
> (even if parsing durationor blks are not differentiated) .
> 
> As it makes pgss number of columns wilder, may be an other solution
> would be to create a pg_stat_statements_xxx view with the same key
> as pgss (dbid,userid,queryid) and all thoses new counters.

Thanks for your ideas and sorry for my late reply.

It seems creating pg_stat_statements_xxx views both for generic and
custom plans is better than my PoC patch.

However, I also began to wonder how effective it would be to just
distinguish between generic and custom plans.  Custom plans can
include all sorts of plans. and thinking cache validation, generic
plans can also include various plans.

Considering this, I'm starting to feel that it would be better to
not just keeping whether generic or cutom but the plan itself as
discussed in the below thread.

https://www.postgresql.org/message-id/flat/CAKU4AWq5_jx1Vyai0_Sumgn-Ks0R%2BN80cf%2Bt170%2BzQs8x6%3DHew%40mail.gmail.com#f57e64b8d37697c808e4385009340871


Any thoughts?


Regards,

--
Atsushi Torikoshi


В списке pgsql-hackers по дате отправления
От: Fujii Masao
Дата:
От: Michael Paquier
Дата:
FAQ