Workaround for rollup on computed column in PostgreSQL