]> 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:45:44 +0000 (10:45 +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 2b80e05d410c7d9df71577c12a0213496b3548f6..b76a973059c4322b5dbe0a55db00db9d3ea6d235 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