]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: always gather the notifications received 975/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Dec 2024 19:38:58 +0000 (20:38 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 26 Dec 2024 16:37:19 +0000 (17:37 +0100)
commitc5503975baf880fb81488c436c628e3cd3d95628
tree77e17e5d09057f90570970782b5956e5b60e3772
parentbba3c013598d340946e2661bacccda7860803242
fix: always gather the notifications received

Starting to register them after the first call to notifies() is somewhat
weird. We also risk to lose notifications in a case such as:

    conn.execute("listen foo")
    conn.execute("listen bar")
    for n in conn.notifies():
        ...
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