Re: BUG #18608: Assert in check_agglevels_and_constraints() fails on creating a rule with aggr(NEW) in subselect
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-09-10T19:06:20Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> [ NEW reference confuses check_agglevels_and_constraints ]
> triggers an assertion failure:
> TRAP: failed Assert("pstate->p_lateral_active"), File: "parse_agg.c", Line:
> 385, PID: 2785906
> Without asserts enabled, it fails with:
> ERROR: aggregate functions are not allowed in FROM clause of their own
> query level
Interesting. I'm inclined to just remove the Assert, since it's
evidently wrong and the ensuing error seems sufficiently on-point.
regards, tom lane
Commits
-
Remove incorrect Assert.
- 2be0e863204e 12.21 landed
- abed06fdc5b2 13.17 landed
- 14bb709b27fe 14.14 landed
- 78d0bd452c78 15.9 landed
- f3336626d2e3 16.5 landed
- 7f88e50b455d 17.0 landed
- 77761ee5dddc 18.0 landed