BUG #17606: There is still some glitch in 3f7323cbb fixing failure of MULTIEXPR_SUBLINK - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17606: There is still some glitch in 3f7323cbb fixing failure of MULTIEXPR_SUBLINK
Date
Msg-id 17606-e5c8ad18d31db96a@postgresql.org
Whole thread Raw
Responses Re: BUG #17606: There is still some glitch in 3f7323cbb fixing failure of MULTIEXPR_SUBLINK
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17606
Logged by:          Andre Lin
Email address:      857348270@qq.com
PostgreSQL version: 13.8
Operating system:   Linux x86_64 GNU/Linux
Description:

3f7323cbb regenerates its Param for each SubPlan by traversing the
targetlist. But ignore one point: initplan is not in targetlist.
This will result in a failed assertion, or an error like "unexpected
PARAM_MULTIEXPR ID: 131074"

reproduce it is simple, change the regress sql in inherit.sql to

explain (verbose, costs off)
update inhpar set (f1, f2[1]) = (select 1, '1' from int4_tbl limit 1)
from onek p2 where inhpar.f1 = p2.unique1;


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17604: Constraints creation dialog column names do not refresh after changing names in the table
Next
From: Daniel Gustafsson
Date:
Subject: Re: BUG #17604: Constraints creation dialog column names do not refresh after changing names in the table