From: Daniele Varrazzo Date: Mon, 8 Apr 2024 20:13:37 +0000 (+0200) Subject: docs(prepare): add note about PgBouncer max prepared statements setting X-Git-Tag: 3.2.0~55^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=79d538642bafeb820114eb170050eface91d3700;p=thirdparty%2Fpsycopg.git docs(prepare): add note about PgBouncer max prepared statements setting --- diff --git a/docs/advanced/prepare.rst b/docs/advanced/prepare.rst index 752dd0f4d..32309a306 100644 --- a/docs/advanced/prepare.rst +++ b/docs/advanced/prepare.rst @@ -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::