sunpeng <bluevaley@xxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general