3.2.10
Added 1
- Add support for Python 3.14
Changed 1
- Notifications received when a handler is registered via add_notify_handler() will not be yielded by the notifies() generator if the generator is not running
Fixed 5
- Fix TypeError shadowing CancelledError upon task cancellation during pipeline execution
- Fix memory leak when lambda/local functions are used as argument for set_json_dumps(), set_json_loads()
- Fix coordination of executemany() with other concurrent operations on other cursors
- Fix leak receiving notifications if the notifies() generator is not called
- Fix psycopg_binary.__version__
Deprecated 1
- Using both the notifies() generator and add_notify_handler() to receive notifications on the same connection
Security 1
- Raise a warning if a GSSAPI connection is obtained using the gssencmode=prefer libpq default
- Fix TypeError shadowing CancelledError upon task cancellation during pipeline execution (ticket #1005).
- Fix memory leak when lambda/local functions are used as argument for set_json_dumps(), set_json_loads() (ticket #1108).
- Fix coordination of executemany() with other concurrent operations on other cursors (ticket #1130).
- Fix leak receiving notifications if the notifies() generator is not called (ticket #1091). Warning This bugfix required the introduction of a change in notifies reception behaviour. If a notification is received when a handler is registered via add_notify_handler() and the notifies() generator is not running the notification will not be yielded by the generator. This is a behaviour similar to before Psycopg 3.2.4, but notifications are not lost if no handler is registered. Using both the generator and handlers to receive notifications on the same connection is therefore deprecated and will now generate a runtime warning.
- Add support for Python 3.14 (ticket #1053).
- Fix psycopg_binary.version.
- Raise a warning if a GSSAPI connection is obtained using the gssencmode=prefer libpq default (see ticket #1136). Warning In a future Psycopg version the default in the binary package will be changed to disable. If you need to interact with the GSSAPI reliably you should explicitly set the gssencmode parameter in the connection string or the PGGSSENCMODE environment variable to prefer or require.