Re: Unexpected planner choice in simple JOIN

From: Mark Kirkwood <mark(dot)kirkwood(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Unexpected planner choice in simple JOIN
Date: 2026-01-08 04:55:06
Message-ID: b31fca68-c50e-4f70-923c-39f303abf127@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Right makes sense - as I noted...the 'wrong' plan is still pretty fast...

On 08/01/2026 17:51, Tom Lane wrote:
> Mark Kirkwood <mark(dot)kirkwood(at)gmail(dot)com> writes:
>> A point comes to mind - this is not a particularly unusual setup (i.e
>> relatively small parent table with big child one), so maybe the defaults
>> are not ideal here?
> Very probably. To my mind, the default costs for parallel query and
> JIT are both unduly optimistic and tend to drive the planner to use
> those features when you'd be better off without. The reason there's
> not been more argument about them is that the downside of using those
> features on a too-small query is bounded, while the upside of using
> them on very-big queries isn't. So nobody's invested the effort to
> gather enough evidence to back choosing a different set of defaults.
>
> regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Kirkwood 2026-01-09 00:12:45 Another unexpected planner choice in simple JOIN
Previous Message Tom Lane 2026-01-08 04:51:53 Re: Unexpected planner choice in simple JOIN