pg8000-1.9.11 has been released. The changes are:
-
Add support for two-phase commit DBAPI extension. Thanks to Mariano Reingart’s TPC code on the Google Code version:
https://code.google.com/p/pg8000/source/detail?r=c8609701b348b1812c418e2c7
on which the code for this commit is based.
-Deprecate
copy_from()andcopy_to()The methodscopy_from()andcopy_to()of theCursorobject are deprecated because it’s simpler and more flexible to use theexecute()method with afileobjparameter. -
Fixed bug in reporting unsupported authentication codes. Thanks to https://github.com/hackgnar for reporting this and providing the fix.
-
Have a default for the
userparamater of theconnect()function. If theuserparameter of theconnect()function isn’t provided, look first for thePGUSERthen theUSERenvironment variables. Thanks to Alex Gaynor https://github.com/alex for this suggestion. -
Before PostgreSQL 8.2,
COPYdidn’t give row count. Until PostgreSQL 8.2 (which includes Amazon Redshift which forked at 8.0) theCOPYcommand didn’t return a row count, but pg8000 thought it did. That’s fixed now.