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 theCursor
object are deprecated because it’s simpler and more flexible to use theexecute()
method with afileobj
parameter. -
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
user
paramater of theconnect()
function. If theuser
parameter of theconnect()
function isn’t provided, look first for thePGUSER
then theUSER
environment variables. Thanks to Alex Gaynor https://github.com/alex for this suggestion. -
Before PostgreSQL 8.2,
COPY
didn’t give row count. Until PostgreSQL 8.2 (which includes Amazon Redshift which forked at 8.0) theCOPY
command didn’t return a row count, but pg8000 thought it did. That’s fixed now.