Postgres Aggregate Functions Not A Function Table