pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: bad JIT decision
Date: Fri, 24 Jul 2020 17:16:05 -0700
Message-ID: <20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de> (raw)
In-Reply-To: <629715.1595630222@sss.pgh.pa.us>
References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com>
	<CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com>
	<629715.1595630222@sss.pgh.pa.us>

Hi,

On 2020-07-24 18:37:02 -0400, Tom Lane wrote:
> David Rowley <dgrowleyml@gmail.com> writes:
> > However, for now, you might just want to try raising various jit
> > thresholds so that it only is enabled for more expensive plans.
> 
> Yeah.  I'm fairly convinced that the v12 defaults are far too low,
> because we are constantly seeing complaints of this sort.

I think the issue is more that we need to take into accoutn that the
overhead of JITing scales ~linearly with the number of JITed
expressions. And that's not done right now.  I've had a patch somewhere
that had a prototype implementation of changing the costing to be
#expressions * some_cost, and I think that's a lot more accurate.

Greetings,

Andres Freund





view thread (26+ messages)  latest in thread

Message-ID: <20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de>
Permalink:  ../20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, scott_ribe@elevated-dev.com
  Subject: Re: bad JIT decision
  In-Reply-To: <20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de>
  References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com> <CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com> <629715.1595630222@sss.pgh.pa.us> <20200725001605.vrlncip4fx3esv3b@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox