]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat: use non-blocking cancellation upon Copy termination
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 24 Mar 2023 13:55:18 +0000 (14:55 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 9 Apr 2024 10:07:43 +0000 (12:07 +0200)
commit39319ff481c8d66996a2d4c0877843fb9fe50d0a
treee58c918bac2c23a4e73eda25d10da92ef6bf9a8d
parent472fb48ed76bb0e066ad2b14681e707e5a9d0ccd
feat: use non-blocking cancellation upon Copy termination

The logic of Copy termination, in finish(), is reworked so that
connection cancellation is invoked from there directly instead of from
_end_copy_out_gen() as we cannot call async code from the generator.
docs/news.rst
psycopg/psycopg/_copy.py
psycopg/psycopg/_copy_async.py
psycopg/psycopg/_copy_base.py