sunpeng <bluevaley(at)gmail(dot)com> writes:
> after i execute "select count(*) from pois group by catcode";
> the log of query.targetList is :
> why there is the second TARGETENTRY? what's the purpose of the second
> TARGETENTRY?
It's the GROUP BY expression. Note the ressortgroupref and resjunk
settings.
regards, tom lane