Update to psycopg3
Psycopg3 has been released https://www.psycopg.org/articles/2021/10/13/psycopg-30-released/. After a quick look it seems that only the redesign of connection pool may create problems: https://www.psycopg.org/psycopg3/docs/advanced/pool.html#connection-pools.