]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't lose notifications between notifies() calls
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 21 Dec 2024 01:16:57 +0000 (02:16 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 26 Dec 2024 16:37:19 +0000 (17:37 +0100)
commitbba3c013598d340946e2661bacccda7860803242
treef14abef92f28dc54626e999a3984152d5a4f2704
parent1def29dd889acf231d76d6258240dea3cfc66639
fix: don't lose notifications between notifies() calls

This allows to stop periodically the generator to run some queries (for
example to LISTEN/UNLISTEN certain channels) and start the generator
again without fearing to lose notification in the window.

Cloes #962.
docs/news.rst
psycopg/psycopg/_connection_base.py
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
tests/test_notify.py
tests/test_notify_async.py