pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: bad JIT decision
Date: Sat, 25 Jul 2020 10:54:18 -0400
Message-ID: <673332.1595688858@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvooanQOWLLcxStyqrCY9UAmxN35+e=EV=h-4r8XiCBUGA@mail.gmail.com>
References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com>
	<CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com>
	<629715.1595630222@sss.pgh.pa.us>
	<CAApHDvoFsWpkwt+pKuuswChC+6EKQO+FfwicTQpSfTXAHDfoZw@mail.gmail.com>
	<CAApHDvooanQOWLLcxStyqrCY9UAmxN35+e=EV=h-4r8XiCBUGA@mail.gmail.com>

David Rowley <dgrowleyml@gmail.com> writes:
> ... nested at the bottom level join, about 6 joins deep.  The lack of
> any row being found results in upper level joins not having to do
> anything, and the majority of the plan is (never executed).

On re-reading this, that last point struck me forcibly.  If most of
the plan never gets executed, could we avoid compiling it?  That is,
maybe JIT isn't JIT enough, and we should make compilation happen
at first use of an expression not during executor startup.

			regards, tom lane





view thread (26+ messages)  latest in thread

Message-ID: <673332.1595688858@sss.pgh.pa.us>
Permalink:  ../673332.1595688858@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/673332.1595688858@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, andres@anarazel.de, scott_ribe@elevated-dev.com
  Subject: Re: bad JIT decision
  In-Reply-To: <673332.1595688858@sss.pgh.pa.us>
  References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com> <CAApHDvoGfCqiF-20k4OLgawyubezBbpBpdfJ0SuphbbK0KEVUw@mail.gmail.com> <629715.1595630222@sss.pgh.pa.us> <CAApHDvoFsWpkwt+pKuuswChC+6EKQO+FfwicTQpSfTXAHDfoZw@mail.gmail.com> <CAApHDvooanQOWLLcxStyqrCY9UAmxN35+e=EV=h-4r8XiCBUGA@mail.gmail.com> <673332.1595688858@sss.pgh.pa.us>

* 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