|From:||Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>|
|Subject:||Re: BUG #16053: Query planner performance regression in sql query with multiple CTE in v12|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
>>>>> "PG" == PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
PG> After upgrading to v12 from v11.4 I've noticed one of the queries
PG> run by an application has a significant performance degradation.
PG> I've managed to create a toy db that illustrates the issue.
PG> Following is a link of the db and the query in question (there
PG> seems to be no way to attach a file from the web form. If I should
PG> upload them somewhere else let me know)
You could at least have included the query in the message.
What seems to be happening here looks to me more down to chance than to
any bug. In v11, the join order is constrained by the CTEs, whereas in
v12 it is not; the misplan is the result of a mis-estimated 1-row result
from a subpath that may not have been considered under v11.
|Next Message||Tomas Vondra||2019-10-13 00:10:32||Re: BUG #16045: vacuum_db crash and illegal memory alloc after pg_upgrade from PG11 to PG12|
|Previous Message||PG Bug reporting form||2019-10-12 16:26:06||BUG #16053: Query planner performance regression in sql query with multiple CTE in v12|