]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs(prepare): add note about PgBouncer max prepared statements setting
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 8 Apr 2024 20:13:37 +0000 (22:13 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 8 Apr 2024 21:13:33 +0000 (21:13 +0000)
docs/advanced/prepare.rst

index 752dd0f4da59c423a6c3bd903692731ff3d3c9f1..32309a3061aab7501ac743efbb700004dfc7ab6c 100644 (file)
@@ -66,10 +66,12 @@ Starting from 3.2, Psycopg supports prepared statements when using the
 PgBouncer__ middleware, using the following caveats:
 
 - PgBouncer version must be at least version `1.22`__.
+- PgBouncer `max_prepared_statements`__ must be greater than 0.
 - The libpq version on the client must be from PostgreSQL 17 or higher.
 
 .. __: https://www.pgbouncer.org/
 .. __: https://www.pgbouncer.org/2024/01/pgbouncer-1-22-0
+.. __: https://www.pgbouncer.org/config.html#max_prepared_statements
 
 .. hint::