Because the group by expr is the second expr in EXPR_RF_TREE2, so this index won't be used to replace SeqScan in handleAggregationOperators(). But in later optimization, for deterministic reason, EXPR_RF_TREE1 will be picked to produce consistent order.