=?gb2312?B?t7a5+sza?= <fanguoteng@xxxxxxxxxx> writes: > I use a postgres extension plugin pg_strom to generate the plan. I select one column ¡°avg(c_acctbal)¡± in the SQL, and the generated plan changes to select two column ¡°c_acctbal, c_phone¡±. I think you'd be better off doing that sort of thing in the rewriter somewhere. Wherever you tried to put it in the planner is clearly too late. regards, tom lane