Zum Inhalt springen

Asyncpg Updates & Release Notes

Einträge
30
Quellen
1
Zuletzt aktualisiert

Folge Asyncpg, um die Release Notes in deinen Feed zu holen.

Asyncpg von MagicStack

Asyncpg 0.14.0

Version 0.14.0 meldet die Serverversion ab PostgreSQL 10.0 als x.0.y (inkompatible Änderung), unterstützt Timeouts in Connection.close() und Pool.release(), ergänzt Connection.reload_schema_state() und CrateDB-Erkennung und behebt mehrere Fehler.

Backwards Incompatible Changes

asyncpg now reports the server version as x.0.y for PostgreSQL 10.0 and later. This is in alignment with how upstream is interpreting the "minor" version component now. (@elprans in 1fa12fe2)

Improvements

  • Support timeouts in Connection.close() and Pool.release() (by @elprans in bdfdd898 for #220)

  • Invalidate type cache on schema changes affecting statement result. A new Connection.reload_schema_state() method. (by @vitaly-burovoy in b04556e9)

  • Add CrateDB detection (by @mfussenegger in afc1038f)

Bug Fixes

  • Make prepared statement uid generator global (by @1st1 in 3e43fcf5)

  • Document pgbouncer-related prepared statement breakage (by @elprans in 4a3713f7 for #121)

  • Fix unaligned access issues in host-network byte I/O on ARM (by @elprans in c04576db for #216)

  • Fix issues with timetz type I/O (by @vitaly-burovoy in 7b6c0833)

  • Consistently use postgres/postgres as database/user pair in tests (by @elprans in b4ce7403)

  • Fix Range.__hash__() (by @eumiro in 46f468c9)

  • Guard transaction methods against underlying connection release (by @elprans in 59e2878b for #232)

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg 0.13.0: PostgreSQL 10, PostgreSQL 9.1 entfällt

Version 0.13.0 unterstützt PostgreSQL 10, beendet die Unterstützung für PostgreSQL 9.1, entfernt den veralteten Parameter "binary" aus Connection.set_type_codec() und behebt zahlreiche Fehler, etwa die langsame Typ-Introspektion bei großen Datenbanken.

Backwards Incompatible Changes

  • Drop support for PostgreSQL 9.1 (by @elprans in eaf298b4)

  • Remove the deprecated "binary" parameter from Connection.set_type_codec() (by @elprans in 9ad6625a)

New Features

  • Add support for PostgreSQL 10 (by @elprans)

Bug Fixes

  • Document that single fetches can return None (by @khazhyk in 23394c9d)

  • Fix type introspection being very slow on large databases (by @elprans in e0c44ced for #186)

  • Fix copy tests on PostgreSQL < 9.4 (by @elprans in 327058f8)

  • Fix DeprecationWarning in tests (by @elprans in 3f9523c2)

  • Fix intermittent authentication failures against PostgreSQL 10 servers (by @elprans in 498213e6 for #158)

  • Do not attempt to connect to Unix sockets on Windows when host is not set (by @elprans in 8a32fc4b for #184)

  • Guard against incorrect use of resources associated with a connection (by @elprans in 089ac818, 93bf26f3 for #190)

  • Warn when there are active listeners on a connection that is released (by @elprans in d085d2cc for #190)

  • Add a test for cursors on a standby replica. (by @elprans in c484a470 for #66)

  • Clarify the argument/parameter count mismatch exception (by @elprans in b6fe0186 for #178)

  • Fix TypeError on get_attributes when result has no columns (by @fantix in f29de232)

  • protocol: Use try-finally explicitly every time we create a waiter (by @1st1 in 50edd8c8) …

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg 0.12.0: Log-Listener, numerischer Binärcodec und Fehlerbehebungen

Version 0.12.0 ergänzt as_dict() für PostgresMessage, connection.add_log_listener(), das "tuple"-Austauschformat für Codec-Overrides und einen Binärcodec für den Typ numeric und behebt mehrere Fehler, darunter bei Integer-Grenzprüfungen, NULLs in copy_records_to_table() und doppelten Schlüsseln in Record.

New Features

  • Implement as_dict() method for PostgresMessage. (by @vitaly-burovoy in 90725f1f)

  • Add API for receiving log messages connection.add_log_listener(). (by @vitaly-burovoy and @1st1 in 1b1893df and f072f883 for #144)

  • Add support for "tuple" exchange format for codec overrides. (by @elprans in 0453243b and d27dda72)

  • Implement binary format codec for numeric type. (by @elprans in a5413eb0 for #157)

Bug Fixes

  • Fix boundary checks for integers. (by @vitaly-burovoy in e0829104 and dfcf1356)

  • Fix handling of NULLs in copy_records_to_table(). (by @elprans in 991b1ae8 for #153)

  • Raise an error when a binary COPY FROM is attempted w/o appropriate codec. (by @elprans in 7aac14e2 for #157)

  • Fix Record.items() to support duplicate keys. See #28 for details. (by @1st1 in 39b390c3 for #28)

  • Fix Record.keys() to correctly return duplicate keys. See #28. (by @1st1 in b06114de for #28)

  • Call notifications listeners using loop.call_soon(). (by @1st1 in 83d08bd8)

  • Make PoolConnectionProxy more dynamic. Fixes #155. (by @1st1 in 6ca1f28b for #155)

  • Make sure set_type_codec() overrides core codec for all formats. (by @elprans in 9c32b86f for #140)

  • New severity "V" field as "severity_en" attribute. (by @vitaly-burovoy in 35bce5a8)

  • Make interval decoding logic match that of psycopg2. (by @elprans in 6b484433 for #150)

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg 0.11.0: COPY IN/OUT und inkompatible Änderungen

Version 0.11.0 bringt Unterstützung für COPY IN und COPY OUT, macht timeout bei executemany() zum reinen Keyword-Argument, verbietet Nicht-Strings als Text-Argumente, führt server_settings für connect() und create_pool() ein und behebt mehrere Fehler.

Backwards Incompatible Changes

  • Make timeout param of executemany() a keyword-only kwarg. (by @1st1 in bb326fc0)

  • Prohibit passing non-string instances as text arguments to queries. (by @elprans in ccc5f7a5)

  • connect() and create_pool() no longer accept arbitrary keyword arguments for server settings. Use new server_settings argument for that.

New Features

  • Add support for COPY IN. (by @elprans in 10d95d43 for #123)

  • Add support for COPY OUT. (by @elprans and @1st1 in 5662d9f5 for #21)

Bug Fixes

  • Refactor args parsing and config management for connect() and create_pool(). (by @1st1 in f280a566)

  • support postgres-xl version (by songjy in ffb89592)

  • Fix erroneous codec cache invalidation on internal codec aliasing. (by @elprans in df64f554 for #133)

  • Fix potential segfault in text array decoder. (by @elprans in bbd116be)

  • Limit max number of arguments (closes #127). (by @1st1 in 128910e4 for #127)

Documentation

  • Expand usage documentation, add FAQ. (by @elprans in e4bef17f)

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg 0.10.1: Neuer Parameter max_cacheable_statement_size

Version 0.10.1 fügt den Connection-Parameter max_cacheable_statement_size hinzu, verlangt für command_timeout einen Wert über 0, behebt SSL im Connection Pool und macht das Timeout in connect() konsistent.

New features

  • Add new Connection parameter: max_cacheable_statement_size. (by @1st1 in b1f87ebe for #115)

Bug fixes

  • Require command_timeout argument of connect() be greater than 0. (by @1st1 in 7b7ce990)

  • Fix SSL support in connection pool. (by @elprans in b89fb458 for #119)

  • Make timeout in connect() consistent. (by @1st1 in 1d8f5cf1 for #117)

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg 0.10.0: SSL-Unterstützung und neue Pool-Parameter

Version 0.10.0 ergänzt SSL-Verbindungen, die Parameter max_cached_statement_lifetime und max_inactive_connection_lifetime, überschreibbare Codecs für eingebaute Typen, asyncpg.Record, Invalidierung des Statement-Caches bei Schemaänderungen und weitere Neuerungen.

New features

  • Add support for SSL connections. (by @1st1 in 5836a8fc for #25)

  • Add max_cached_statement_lifetime parameter to asyncpg.connect(). (by @1st1 in 10955fdd for #76)

  • Add max_inactive_connection_lifetime parameter to asyncpg.create_pool(). (by @1st1 in a2935aed)

  • Expose some of Connection methods directly on the Pool object. (by @1st1 in 1b3a847c for #39)

  • Allow overriding codecs for builtin types on a connection. (by @elprans in 71de129b for #73)

  • Add support for the text I/O fallback for arrays of unknown types. (by @elprans in a2e53ab0 for #82)

  • Make the Record type available as asyncpg.Record. (by @elprans in d42608f9 for #93)

  • pool: Track connections and prohibit using them after release. (by @1st1 in 3bf6103e)

  • Rollback any active transactions in Connection.reset(). (by @1st1 in 0d19d962)

  • Invalidate statement cache on schema changes affecting statement result. (by @elprans in 749d857a for #72)

  • Use anonymous prepared statements when the cache is off. (by @1st1 in a3e9cb45 for #76)

  • Raise an error if connection is used after being closed. (by @1st1 in 5ddd7fc9)

  • Add Amazon Redshift detection. (by @elprans in 4fdc1dbc for #29)

  • Add rudimentary server capability detection. (by @elprans in e8bb3dc0 for #87)

Bug fixes

  • Handle exceptions in generators passed to Connection.executemany(). (by @elprans in 8d17eccb for #85) …

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg Version 0.8.3

Version 0.8.3 enthält unter anderem einen Textarray-Decoder, eine Infrastruktur für Multiformat-Datencodecs, Korrekturen an Compiler-Warnungen und Puffergrößen sowie Verbesserungen bei Tests und CI.

Elvis Pranskevichus (9):

  • Increase pool.acquire timeout in tests to avoid failures on Travis
  • Silence a few -Wmaybe-uninitialized warnings
  • Increase test timeouts
  • Attempt to fix spurious failures of test_auth_reject on Windows
  • Use ssize_t for buffer sizes consistently
  • Add infrastructure for multiformat data codecs
  • Implement text array decoder (#60)
  • ci: Make sure wheel builds on macOS start from a clean slate (#61)

Vitaly Burovoy (3):

  • Make TYPEMAP be stable and avoid extra endline at the end of pgtypes.pxi
  • Make error message be the same as in the "_get_array_shape" function.
  • Add codec tests for "aclitem[]" type

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg Version 0.8.1

Version 0.8.1 behebt Connection.reset() auf schreibgeschützten Verbindungen, ergänzt Kompatibilität mit PostgreSQL 9.1–9.3 und korrigiert Probleme bei Cython-Coroutinen, _cancel_current_command, setup.py und Dokumentation.

Elvis Pranskevichus (7):

  • Fix Connection.reset() on read-only connections (#48)
  • Add compatibility with PostgreSQL server versions 9.1-9.3
  • travis: Test on all available PostgreSQL versions
  • travis: Also build on Python 3.6
  • Fix setup.py metadata and README rst issues
  • ci: Switch to staged release process
  • travis: Fix documentation deploy on tagged builds (#52)

Lele Gaifax (1):

  • Fix typo in API documentation

Yury Selivanov (2):

  • cython: Make async def coroutines awaitable in cythonized coroutines
  • connection: Fix waiter wakeup code in _cancel_current_command

Originalquelle(öffnet in neuem Tab)Problem melden

Asyncpg von MagicStack

Asyncpg Version 0.7.0

Version 0.7.0 führt Connection.executemany() ein, dekodiert Arrays als Listen inklusive Arrays zusammengesetzter Typen, erlaubt leere Record-Objekte und behebt unter anderem die CIDR-Eingabe für "inet" sowie das Parsen der pg_ctl-Ausgabe.

Chris Lamb (1):

  • Fix parsing pg_ctl output in some locales

Elvis Pranskevichus (9):

  • Fix building of wheels on macOS
  • setup.py: Support --cython-directives properly
  • Decode arrays as lists, handle arrays of composite types (#33)
  • Ignore system and dropped attributes in composite types (#43)
  • Fix handling of CIDR input to "inet" data type (#37)
  • Implement the Connection.executemany() method (#36)

Yury Selivanov (3):

  • Allow empty Record objects.
  • cluster: Fix how settings args are passed to 'init'
  • Enable 'setup.py test'

Originalquelle(öffnet in neuem Tab)Problem melden