]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(adapters): avoid race condition when replacing class name with itself 1231/head
authorNicolas Noirbent <nicolas.noirbent@lumapps.com>
Wed, 3 Dec 2025 15:58:25 +0000 (16:58 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 5 Dec 2025 13:20:27 +0000 (14:20 +0100)
commit08bfe006ae0d9dea00b69f6a6df8497a0c0e4965
tree85eac21c050d24041523fd1458c95ad1f29dbc51
parent7be710e7cbe42c94288efeda0bb5a87ad9659f03
fix(adapters): avoid race condition when replacing class name with itself

Another thread may be switched to between the dmap.pop(fqn) instruction
and the dmap[scls] one, typically at program startup when multiple
threads are making their "first" queries.

Close #1230
docs/news.rst
psycopg/psycopg/_adapters_map.py