planner: treat plans with different in-list length as the same one in plan cache #42984
Labels
epic/memory-management
epic/plan-cache
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Currently, for 2 'same' queries with different in-list lengths, plan cache will generate and cache different plans for them.
For example, plan cache will cache 2 plans for the 2 'same' queries below:
select * from t where a in (1, 2)
,select * from t where a in (1, 2, 3)
.This strategy can cause lots of memory usage:
The text was updated successfully, but these errors were encountered: