Hi Andrew, Thanks for testing and for the review. You're right. From statistics, estimate_array_length() counts only distinct non-null elements, so the estimate can also be too low.
v5 rewords that comment. Thanks, Shihao
v5-0002-Lower-generate_subscripts-s-prorows-estimate-to-1.patch
Description: Binary data
v5-0001-Add-a-planner-support-function-for-generate_subsc.patch
Description: Binary data
