Skip to content

Releases: MagicStack/asyncpg

asyncpg v0.20.0

21 Nov 00:30
ae7c110
Compare
Choose a tag to compare

Improvements

  • Support Python 3.8
    (by @1st1 in #504)

  • Support PgBouncer by sending only a single SYNC message per query
    (by @fvannee in b043fbd)

Bug Fixes

  • Handle IP values with prefix in "inet" type as ipaddress.IPvXInterface
    (by @elprans in 5a4daf7 for #497)

  • Close transport if connection times out
    (by @hexrain in 926f483 for #468)

  • Use faster UUID codecs; make UUID decoding/encoding/operations 2-7x faster
    (by @1st1 in edde3ff)

  • Use loop.start_tls() to upgrade connections to SSL
    (by @1st1 in bdba7ce)

Build

asyncpg v0.19.0

09 Oct 18:29
v0.19.0
89815ea
Compare
Choose a tag to compare

Improvements

Bug Fixes

asyncpg v0.18.2

10 Nov 18:57
v0.18.2
2200cd2
Compare
Choose a tag to compare

Bug Fixes

  • Revert "Stop treating ReadyForQuery as a universal result indicator"
    to fix stability regression.
    (by @elprans in 04b6748)

  • Correctly ignore all incoming messages after the Terminate message
    (by @elprans in 787317f)

  • Properly cleanup connections closed by remote
    (by @elprans in 4393a15 for #385)

asyncpg v0.18.1

31 Oct 14:02
v0.18.1
8c5c1bf
Compare
Choose a tag to compare

Bug Fixes

asyncpg v0.18.0

30 Oct 19:36
v0.18.0
d2873e7
Compare
Choose a tag to compare

Improvements

Bug Fixes

  • Handle and ignore permission errors when attempting to read .pgpass
    (by @elprans in df7830f for #356)

  • Fix decoding of fractional timestamps before Postgres epoch
    (by @elprans in a7eaf2b for #363)

asyncpg v0.17.0

10 Jul 20:41
v0.17.0
d2308e8
Compare
Choose a tag to compare

Improvements

Official support for Python 3.7.

Bug Fixes

  • Fix garbage collection of connections and emit a ResourceWarning
    if an unclosed connection is garbage collected.
    (by @1st1 in d9a236e for #323)

  • Raise a clear error if there's a race in pool intialization.
    (by @1st1 in 3565ef8 for #320)

  • Channel names in Connection.add_listener() and
    Connection.remove_listener() are now quoted properly.
    (by @sqwishy in 3e6ade6)

  • Fixed endianness detection on *BSD systems.
    (by @elprans in 8c83add for #313)

  • Fixed handling of large type OIDs.
    (by @elprans in 2624bdb for #300)

asyncpg v0.16.0

06 Jun 00:53
v0.16.0
8d6abc1
Compare
Choose a tag to compare

Behavior Changes

Pool.close() now waits until all acquired connections are released.
Hence, the below code will now hang indefinitely:

conn = await pool.acquire()
await pool.close()

Asyncpg will log a warning if pool.close() takes over 60 seconds to
complete. It is advisable to use asyncio.wait_for() to set a timeout.

Improvements

Bug Fixes

asyncpg v0.15.0

15 Feb 17:08
v0.15.0
2f558c2
Compare
Choose a tag to compare

Behavior Changes

asyncpg no longer uses the common statement cache for explicit
prepared statements, so Connection.prepare() always returns a
new prepared statement (by @vangheem in a19ce50).

Bug Fixes

asyncpg v0.14.0

29 Dec 17:45
v0.14.0
45f0e2a
Compare
Choose a tag to compare

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 1fa12fe)

Improvements

Bug Fixes

v0.13.0

20 Oct 14:37
v0.13.0
Compare
Choose a tag to compare

Backwards Incompatible Changes

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

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

New Features

  • Add support for PostgreSQL 10
    (by @elprans)

Bug Fixes