Re: BUG #17700: An assert failed in prepjointree.c

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>, xinwen@stu.scu.edu.cn, pgsql-bugs@lists.postgresql.org
Date: 2022-11-28T16:22:07Z
Lists: pgsql-bugs

Attachments

I wrote:
> Yeah, the possibility of a PHV in the qual refutes that argument.
> So we need to make the test honestly, as in the other arms of that
> switch.  Will fix.

Actually ... it seems like we could just drop that Assert, as per
revised argument in the comment.  This'd explain the lack of field
complaints: there's no bug in a production build.

			regards, tom lane

Commits

  1. Remove bogus Assert and dead code in remove_useless_results_recurse().