Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.

Bruce Momjian <bruce@momjian.us>

Commit: 763ff8aef848d71da079049890786edffc3302d6
Author: Bruce Momjian <bruce@momjian.us>
Date: 1998-01-15T19:00:16Z
Releases: 7.1.1
Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.

Pass List* of Aggregs into executor, and create needed array there.
No longer need to double-processs Aggregs with second copy in Query.

Fix crash when doing:

	select sum(x+1) from test where 1 > 0;

Files