Postgres Aggregate Functions Not Differentiable Graph