- Add :ref:`Two-Phase Commit <two-phase-commit>` support (:ticket:`#72`).
- Add ``returning`` parameter to `~Cursor.executemany()` to retrieve query
results (:ticket:`#164`).
+- `~Cursor.executemany()` performance improved by using batch mode internally
+ (:ticket:`#145`).
- Add `pq.PGconn.trace()` and related trace functions (:ticket:`#167`).
- Add ``prepare_threshold`` parameter to `Connection` init (:ticket:`#200`).
- Add `Error.pgconn` and `Error.pgresult` attributes (:ticket:`#242`).
[(10,), (20,)],
)
- # TODO: this is a bug. It is caused by reentering the pipeline mode in
+ # TODO: failing. It is caused by reentering the pipeline mode in
# executemany(). Leaving it here to monitor how it changes. The snag is
# in Cursor._set_results_from_pipeline()
assert cur.rowcount == 2