From: Andres Freund <andres@anarazel.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: bad JIT decision
Date: Fri, 24 Jul 2020 18:51:23 -0700
Message-ID: <ae6fc841-081e-459a-8204-075c622a0667@beta.fastmail.com> (raw)
In-Reply-To: <559519F3-5285-4F2B-A88F-0067382761A7@elevated-dev.com>
References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com>
<CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com>
<559519F3-5285-4F2B-A88F-0067382761A7@elevated-dev.com>
Hi,
On Fri, Jul 24, 2020, at 15:32, Scott Ribe wrote:
> > On Jul 24, 2020, at 4:26 PM, David Rowley <dgrowleyml@gmail.com> wrote:
> >
> > It does not really take into account the cost of jitting.
>
> That is what I was missing.
>
> I read about JIT when 12 was pre-release; in re-reading after my post I
> see that it does not attempt to estimate JIT cost. And in thinking
> about it, I realize that would be next to impossible to anticipate how
> expensive LLVM optimizstion was going to be.
We certainly can do better than now.
> In the case where a set of functions is replicated across partitions,
> it would be possible to do them once, then project the cost of the
> copies.
Probably not - JITing functions separately is more expensive than doing them once... The bigger benefit there is to avoid optimizing functions that are likely to be the same.
> Perhaps for PG 14 as better support for the combination of JIT
> optimization and highly-partitioned data ;-)
If I posted a few patches to test / address some of these issue, could you test them with your schema & querries?
Regards,
Andres
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
Subject: Re: bad JIT decision
In-Reply-To: <ae6fc841-081e-459a-8204-075c622a0667@beta.fastmail.com>
References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com> <CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com> <559519F3-5285-4F2B-A88F-0067382761A7@elevated-dev.com> <ae6fc841-081e-459a-8204-075c622a0667@beta.fastmail.com>
* 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