]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix: don't use select as wait function if possible
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 Apr 2023 18:59:55 +0000 (20:59 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 10 Apr 2023 08:44:35 +0000 (10:44 +0200)
select is marginally faster than others, but has the limitation of not
allowing FD > 1024, so it is not a good default.

If people need performance, they will use wait_c anyway, which is based
on poll, and doesn't have the limitation.

docs/news.rst

index 5255c149f0550e81a6526b83bafefcf8b983769c..16165891e3ab7748943f5830080c7d65054af6d7 100644 (file)
@@ -15,6 +15,8 @@ Psycopg 3.1.9 (unreleased)
 
 - Fix `TypeInfo.fetch()` using a connection in `!sql_ascii` encoding
   (:ticket:`#503`).
+- Fix "filedescriptor out of range" using a large number of files open
+  in Python implementation (:ticket:`#532`).
 - Fix canceling running queries on process interruption in async connections
   (:ticket:`#543`).
 - Fix loading ROW values with different types in the same query using the