Postgres Window Functions Postgresql Vs Db2