PostgreSQL result set streaming fixed: checks added