]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix; keep the lock for the entire duration of copy 1210/head
authorKamil Monicz <kamil@monicz.dev>
Fri, 14 Nov 2025 05:09:07 +0000 (06:09 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 16 Nov 2025 14:51:14 +0000 (15:51 +0100)
commit193e9d923769ada89fe568c9ebd1d0b935b9b622
tree8b16798e3528a2cd7dcd9c405df888e707e5d2d1
parentb9d533beb5d847ef6837fbd4a011f67730225ffd
fix; keep the lock for the entire duration of copy

Avoid errors in concurrent operations on the same connection, from
different cursors.

Close #1210

Fix AsyncCursor.copy concurrency

Apply linter diff

Add test_copy_concurrency and update news

Update docs/news.rst

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Update tests/test_copy_async.py

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Update tests/test_copy_async.py

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Update tests/test_copy_async.py

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Simplify execution_log assertion

Revert unnecessary imports
docs/news.rst
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
tests/test_copy.py
tests/test_copy_async.py