PostgreSQL result set streaming fixed