postgresapp memory problem