]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat: add a timeout parameter to Connection.cancel_safe()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 8 Apr 2024 13:00:17 +0000 (15:00 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 17 Apr 2024 21:51:20 +0000 (23:51 +0200)
commit67ab8f2d6ab02148cad2799fe5b0a35918acf68b
treed6ae6f6e4c34e4125cf470ad098b8c2bc91eaa8b
parentfd7fa2e2a0398b8d4b3de0c0a04522b71de35d8a
feat: add a timeout parameter to Connection.cancel_safe()

This will only work for PGcancelConn, i.e. libpq >= 17, or thanks to
added waiting logic in AsyncConnection's implementation; so we add a
note about the limitation in Connection's documentation.
docs/api/connections.rst
docs/api/errors.rst
psycopg/psycopg/_connection_base.py
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/errors.py
psycopg/psycopg/generators.py
psycopg_c/psycopg_c/_psycopg.pyi
psycopg_c/psycopg_c/_psycopg/generators.pyx
tests/test_connection.py
tests/test_connection_async.py