Re: Add parameter jit_warn_above_fraction

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: Add parameter jit_warn_above_fraction
Дата
Msg-id YlEJqTkG9rG7OcYs@jrouhaud
обсуждение исходный текст
Ответ на Re: Add parameter jit_warn_above_fraction  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Add parameter jit_warn_above_fraction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On Fri, Apr 08, 2022 at 09:39:18AM -0400, Stephen Frost wrote:
>
> * Magnus Hagander (magnus@hagander.net) wrote:
> > The addition to pg_stat_statements I pushed a short while ago would help
> > with that. But I think having a warning like this would also be useful. As
> > a stop-gap measure, yes, but we really don't know when we will have an
> > improved costing model for it. I hope you're right and that we can have it
> > by 16, and then I will definitely advocate for removing the warning again
> > if it works.
>
> Having this in pg_stat_statements is certainly helpful but having a
> warning also is.  I don't think we have to address this in only one way.
> A lot faster to flip this guc and then look in the logs on a busy system
> than to install pg_stat_statements, restart the cluster once you get
> permission to do so, and then query it.

+1, especially if you otherwise don't really need or want to have
pg_stat_statements enabled, as it's far from being free.  Sure you could enable
it by default with pg_stat_statements.track = none, but that seems a lot more
troublesome than just dynamically enabling a GUC, possibly for a short time
and/or for a specific database/role.



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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Expose JIT counters/timing in pg_stat_statements
Следующее
От: Andres Freund
Дата:
Сообщение: failures in t/031_recovery_conflict.pl on CI