]> 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>
Sun, 22 Dec 2024 17:47:14 +0000 (18:47 +0100)
commit5c91cf509e518f5e1ce79638f480f9b9c2232e8c
tree54893ca4fa9d9c3a8ae523d60402192bcc7b206c
parentbe87b6b0189a667670db1b018781b5f892759f6a
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