Psycopg 2.8.1 veröffentlicht
Behoben: Modifizierbarkeit von RealDictRow und Fehler „there’s no async cursor“ beim Abfragen einer Verbindung ohne Cursor.
Folge Psycopg, um die Release Notes in deinen Feed zu holen.
Behoben: Modifizierbarkeit von RealDictRow und Fehler „there’s no async cursor“ beim Abfragen einer Verbindung ohne Cursor.
Neues errors-Modul mit spezifischen Ausnahmeklassen für jeden PostgreSQL-Fehler, encrypt_password()-Funktion, BYTES-Adapter für gemischte Encodings, table_oid- und table_column-Attribute auf cursor.description-Einträgen sowie connection.info-Objekt für Verbindungsinformationen.
New features:
Added errors module. Every PostgreSQL error is converted into a specific exception class (ticket #682).
Added encrypt_password() function (ticket #576).
Added BYTES adapter to manage databases with mixed encodings on Python 3 (ticket #835).
Added table_oid and table_column attributes on cursor.description items (ticket #661).
Added connection.info object to retrieve various PostgreSQL connection information (ticket #726). …
Bereinigung des Cursor-Ergebnis-Zuweisungscodes, was möglicherweise Double Free und Inkonsistenzen bei paralleler Nutzung behebt; Wheel-Paket mit OpenSSL 1.0.2q gebündelt.
Behoben: Binärpaket auf OS X 10.12 defekt; Wheel-Paket mit PostgreSQL 11.1 libpq gebündelt.
Fixed binary package broken on OS X 10.12 (ticket #807).
Wheel package bundled with PostgreSQL 11.1 libpq.
Behoben: Schließen benannter Cursor ohne execute(), Bauen auf FreeBSD mit Python 3.7, Hängen bei COPY über execute() in asynchronen Verbindungen, Anpassung von Arrays leerer Arrays, Segfault bei readonly/deferrable; execute_values() akzeptiert Composable-Objekte; errorcodes auf PostgreSQL 11 aktualisiert; Wheel mit PostgreSQL 10.5 libpq und OpenSSL 1.0.2p.
Close named cursors if exist, even if execute() wasn’t called (ticket #746).
Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
Fixed adaptation of arrays of empty arrays (ticket #788).
Fixed segfault accessing the connection’s readonly and deferrable attributes repeatedly (ticket #790).
execute_values() accepts Composable objects (ticket #794).
errorcodes map updated to PostgreSQL 11.
Wheel package bundled with PostgreSQL 10.5 libpq and OpenSSL 1.0.2p.
Psycopg 2.7.5 behebt mehrere Fehler, darunter Probleme mit Nicht-ASCII-Zeichen in Namedtuple-Feldern, Arrays von Arrays mit Nullen und das Erstellen auf Solaris 11, und enthält ein Wheel-Paket mit PostgreSQL 10.4 libpq und OpenSSL 1.0.2o.
Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
Fixed adaptation of arrays of arrays of nulls (ticket #325).
Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
Maybe fixed building on MSYS2 (as reported in ticket #658).
Allow string subclasses in connection and other places (ticket #679).
Don’t raise an exception closing an unused named cursor (ticket #716).
Wheel package bundled with PostgreSQL 10.4 libpq and OpenSSL 1.0.2o.
Psycopg 2.7.4 warnt beim Import von Wheel-Paketen und führt das Paket psycopg2-binary ein, behebt diverse Fehler, unter anderem mit NamedTupleCursor, mogrify() auf geschlossenen Cursorn und der Kompilierung.
Moving away from installing the wheel package by default. Packages installed from wheel raise a warning on import. Added package psycopg2-binary to install from wheel instead (ticket #543).
Convert fields names into valid Python identifiers in NamedTupleCursor (ticket #211).
Fixed Solaris 10 support (ticket #532).
cursor.mogrify() can be called on closed cursors (ticket #579).
Fixed setting session characteristics in corner cases on autocommit connections (ticket #580).
Fixed MinTimeLoggingCursor on Python 3 (ticket #609).
Fixed parsing of array of points as floats (ticket #613).
Fixed __libpq_version__ building with libpq >= 10.1 (ticket #632). …
Das Wheel-Paket von Psycopg 2.7.3.2 enthält jetzt PostgreSQL 10.0 libpq und OpenSSL 1.0.2l.
Psycopg 2.7.3.1 entfernt libresolv aus dem Wheel-Paket, um Kompatibilitätsprobleme mit glibc 2.26 zu vermeiden.
Psycopg 2.7.3 stellt die standardmäßige Umwandlung von timestamptz[]-Arrays in Python-datetime-Objekte wieder her, die in Version 2.7.2 ausgefallen war.
timestamptz[] typecasting to Python datetime. Regression introduced in Psycopg 2.7.2 (ticket #578).Psycopg 2.7.2 behebt unter anderem Probleme mit extern geschlossenen Verbindungen, unnötige Passwortanzeige in connection.dsn, einen Segfault in lobject() und entfernt die Abhängigkeit von der VC9-Runtime.
Fixed inconsistent state in externally closed connections (tickets #263, #311, #443). Was fixed in 2.6.2 but not included in 2.7 by mistake.
Fixed Python exceptions propagation in green callback (ticket #410).
Don’t display the password in connection.dsn when the connection string is specified as an URI (ticket #528).
Return objects with timezone parsing “infinity” timestamptz (ticket #536).
Dropped dependency on VC9 runtime on Windows binary packages (ticket #541).
Fixed segfault in lobject() when mode=None (ticket #544).
Fixed lobject() keyword argument lobject_factory (ticket #545). …
Psycopg 2.7.1 ignoriert None-Argumente in connect() und make_dsn(), aktualisiert OpenSSL in Linux-Wheels auf 1.0.2 und behebt Build-Probleme mit alten libpq-Versionen.
Psycopg 2.7 führt ein Modul zur dynamischen SQL-Erzeugung und Unterstützung für das Replikationsprotokoll ein, ergänzt Funktionen wie parse_dsn() und make_dsn() und bietet neue Möglichkeiten zur libpq-Versionsprüfung.
New features:
Added sql module to generate SQL dynamically (ticket #308).
Added Replication protocol support (ticket #322). Main authors are Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you.
Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect() now can take both dsn and keyword arguments, merging them together.
Added __libpq_version__ and libpq_version() to inspect the version of the libpq library the module was bundled with (tickets #35, #323). …
Psycopg 2.6.2 behebt unter anderem einen inkonsistenten Zustand bei extern geschlossenen Verbindungen, zeigt Serverantwortstatus bei Fehlern an, unterstützt setuptools/wheel und verbessert die Behandlung von Strings und Bytes.
Fixed inconsistent state in externally closed connections (tickets #263, #311, #443).
Report the server response status on errors (such as ticket #281).
Raise NotSupportedError on unhandled server response status (ticket #352).
Allow overriding string adapter encoding with no connection (ticket #331).
The wait_select callback allows interrupting a long-running query in an interactive shell using Ctrl-C (ticket #333).
Fixed PersistentConnectionPool on Python 3 (ticket #348).
Fixed segfault on repr() of an unitialized connection (ticket #361).
Allow adapting bytes using QuotedString on Python 3 (ticket #365).
Added support for setuptools/wheel (ticket #370). …
Psycopg 2.6.1 korrigiert das Escaping von Listen mit nur None, behebt einen Deadlock in Multithread-Programmen mit OpenSSL und fügt Unterstützung für den MSVC 2015-Compiler hinzu.
Lists consisting of only None are escaped correctly (ticket #285).
Fixed deadlock in multithread programs using OpenSSL (ticket #290).
Correctly unlock the connection after error in flush (ticket #294).
Fixed MinTimeLoggingCursor.callproc() (ticket #309).
Added support for MSVC 2015 compiler (ticket #350).
Psycopg 2.6 unterstützt große Objekte über 2 GB, konvertiert Python-Zeitobjekte mit tzinfo in PostgreSQL timetz und behebt einen Fehler beim Json-Adapter.
New features:
Added support for large objects larger than 2GB. Many thanks to Blake Rouse and the MAAS Team for the feature development.
Python time objects with a tzinfo specified and PostgreSQL timetz data are converted into each other (ticket #272).
Bug fixes:
str() returns the adapted content instead of the repr() (ticket #191).Psycopg 2.5.5 behebt Probleme bei benannten Cursorn, macht cursor.description picklable, propagiert Lesefehler in COPY FROM und konvertiert PostgreSQL-Zeit 24:00 zu Python 00:00.
Psycopg 2.5.4 fügt jsonb-Unterstützung für PostgreSQL 9.4 hinzu, behebt einen Segfault bei COPY-Statements, erlaubt WITH-HOLD-Cursor im Autocommit-Modus und behebt einen Speicherleck.
Added jsonb support for PostgreSQL 9.4 (ticket #226).
Fixed segfault if COPY statements are passed to execute() instead of using the proper methods (ticket #219).
Force conversion of pool arguments to integer to avoid potentially unbounded pools (ticket #220).
Cursors WITH HOLD don’t begin a new transaction upon move/fetch/close (ticket #228).
Cursors WITH HOLD can be used in autocommit (ticket #229).
callproc() doesn’t silently ignore an argument without a length.
Fixed memory leak with large objects (ticket #256).
Make sure the internal _psycopg.so module can be imported stand-alone (to allow modules juggling such as the one described in ticket #201).
Psycopg 2.5.3 umgeht ein pip-Problem, setzt rowcount bei Copy-Operationen korrekt, erlaubt get_transaction_status() auf geschlossenen Verbindungen und behebt verschiedene Abstürze.
Work around pip issue #1630 making installation via pip -e git+url impossible (ticket #18).
Copy operations correctly set the cursor.rowcount attribute (ticket #180).
It is now possible to call get_transaction_status() on closed connections.
Fixed unsafe access to object names causing assertion failures in Python 3 debug builds (ticket #188).
Mark the connection closed if found broken on poll() (from ticket #192 discussion)
Fixed handling of dsn and closed attributes in connection subclasses failing to connect (from ticket #192 discussion).
Added arbitrary but stable order to Range objects, thanks to Chris Withers (ticket #193).
Avoid blocking async connections on connect (ticket #194). Thanks to Adam Petrovich for the bug report and diagnosis.
Don’t segfault using poorly defined cursor subclasses which forgot to call the superclass init (ticket #195). …
Psycopg 2.5.2 behebt einen Segfault beim Pickling von Verbindungsfehlern, verbessert Fehlermeldungen und verhindert einen Absturz bei manuell erstellten lobject-Objekten.