]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: implement libpq semantic for target_session_attrs=prefer-standby
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 10 Mar 2025 22:53:31 +0000 (23:53 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 12 Mar 2025 17:50:40 +0000 (18:50 +0100)
commitb37dc1a35b8c24707bc844f8cc8ee965121ba25b
tree1ef06b9055fae3a385841227c85a1648c1ec41c8
parentc946e403678ef1370bcb3c2f71ecd66badee5ff9
fix: implement libpq semantic for target_session_attrs=prefer-standby

First attempt all the servers in standby mode, then fall back to any
mode.

Fix #1021.
docs/news.rst
psycopg/psycopg/_conninfo_attempts.py
psycopg/psycopg/_conninfo_attempts_async.py
tests/test_connection.py
tests/test_connection_async.py
tests/test_conninfo_attempts.py
tests/test_conninfo_attempts_async.py