Psycopg 2.8 beta 2 released

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Psycopg 2.8 beta 2 released
Date: 2019-03-21 20:43:50
Message-ID: CA+mi_8adwowNL5HAKuaNy+5hKuiUZwL6k5uJ2_MnvfKGuAjrOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

> If no problem arise we will release the final package in a few days.

...and problems found us. The last ones were a few eventful days.

Things that happened between 2.8 beta 1 and 2:

- Fixed #856, which would have seen async/green connections to block
in a scenario with multiple queries and interspersed notifies.
- 'pq_get_last_result()' dropped in order to fix the above; results
are temporarily stored in the connection in order to survive multiple
'poll()' calls, which turns out to be better for certain green paths
(where e.g. a hidden cursor was created and destroyed just to hold
a result temporarily).
- Fixed #829, which was causing connections to be closed by unrelated
multiprocessing calls.
- Added 'connection.pgconn_ptr' and 'cursor.pgresult_ptr' to allow
interaction between Python and libpq via ctypes or cffi, without
waiting for a new major version or writing C code. I thought that this
scenario was covered by the capsule object but it's not, and projects
using psycopg have waited forever to have just a function of two
exposed: this should make psycopg2 more flexible.

I feel like all the bugs of the world have been fixed. However, as the
async layer has changed so much, I'd like to ask for another round of
tests: you can install psycogp2 2.8 beta 2 with:

pip install -i https://test.pypi.org/simple/ psycopg2==2.8b2

Cheers,

-- Daniele

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2019-04-04 13:05:52 Psycopg 2.8 released
Previous Message Xikui Wang 2019-03-20 01:09:22 Implicit query plan caching within a connection