Re: Assert failure in try_nestloop_path()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Assert failure in try_nestloop_path()
Date: 2026-09-03 14:57:37
Message-ID: 1468829.1788447457@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> I was studying the PHV bug caused by join-removal and ran into an
> assertion failure with the query below, which is not related to
> join-removal. So start a new thread for it.
> ...
> Attached is a patch that teaches join_is_legal() to reject a join
> whose minimum parameterization includes an outer-join relid, if that
> outer join cannot be formed outside the join.

This looks like a good fix to me. Interesting that we've failed
to notice this bug up to now.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ChenhuiMo 2026-09-03 15:20:59 Re:[PATCH] Speed up repeat() for larger counts
Previous Message Tom Lane 2026-09-03 14:55:05 Re: remove_useless_joins vs. bug #19560