I encounter the following error when running psycopg 3.1.8 on python 3.9 on a server with a large number of open file descriptors. This is the stack trace:
File "python3.9/site-packages/psycopg/cursor.py", line 719, in execute
self._conn.wait(
File python3.9/site-packages/psycopg/connection.py", line 957, in wait
return waiting.wait(gen, self.pgconn.socket, timeout=timeout)
File "python3.9/site-packages/psycopg/waiting.py", line 219, in wait_select
rl, wl, xl = select.select(
ValueError: filedescriptor out of range in select()
ulimit have been set to allow for the large number of FDs so this is not the issue. Downgrading to psycopg v3.1.4 fixes the issue.
I encounter the following error when running psycopg 3.1.8 on python 3.9 on a server with a large number of open file descriptors. This is the stack trace:
ulimithave been set to allow for the large number of FDs so this is not the issue. Downgrading to psycopg v3.1.4 fixes the issue.