On Mon, 17 Oct 2022 at 13:08, Stefan Knecht <knecht.ste...@gmail.com> wrote:
>> Which version of psycopg are you >> using? Some old one have problems with closing connections in >> multiprocess environments. That was fixed in psycopg 2.8 (#829). >> > > This is psycopg 3.1.3 > > And I just realized that all the other threading code I've got is on > psycopg2-binary 2.8. Has there something changed with threads in v3 ? Ok, you mentioned psycopg2 in the title, so I thought about that past issue we found. Psycopg 3 shouldn't have a massively different behaviour (and is tested for issue #829). -- Daniele