Postgres Window Functions Are Not Allowed To Access