caos.backend.pgsql: Do not reinterpret aggregate expressions outside filters
caos.backend.pgsql: Do not reinterpret aggregate expressions outside filters

PostgreSQL backend interprets aggregate expressions to construct GROUP
BY and HAVING clauses of the rendered SQL query.  However, this should only
be done in the filter expression context.

edgedb/edgedb,edgedb/edgedb,edgedb/edgedb