Re: Add parameter jit_warn_above_fraction - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: Add parameter jit_warn_above_fraction
Date
Msg-id YlEJqTkG9rG7OcYs@jrouhaud
Whole thread Raw
In response to Re: Add parameter jit_warn_above_fraction  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Add parameter jit_warn_above_fraction
List 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 by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Expose JIT counters/timing in pg_stat_statements
Next
From: Andres Freund
Date:
Subject: failures in t/031_recovery_conflict.pl on CI