I want to read part of result from cursor and then close it without reading all result. cursor.close() raises InternalError: Unread result found. I
cursor.close()
InternalError: Unread result found.
All you have to do is pass buffered = true in your cursor. Read more official docs
buffered = true
cursor = conn.cursor(buffered=True)