I have a typical problem to solve, I have a table foo which has 7 columns and want to group only by one column in Postgres. A typical group by clause doesn\'t work and gives