The parameters are the same of `execute()`.
+ .. warning::
+
+ Failing to consume the iterator entirely will result in a
+ connection left in `~psycopg.ConnectionInfo.transaction_status`
+ `~pq.TransactionStatus.ACTIVE` state: this connection will refuse
+ to receive further commands (with a messge such as *another
+ command is already in progress*).
+
+ You can restore the connection to a working state by consuming
+ the generator entirely: see `this comment`__ to get a few ideas
+ about how to do it.
+
+ .. __: https://github.com/psycopg/psycopg/issues/382#issuecomment-1253582340
+
+
.. attribute:: format
The format of the data returned by the queries. It can be selected