Skip to content

Commit 6ec85a4

Browse files
mrl5porsager
authored andcommitted
docs(readme): mention pgbouncer supports protocol-level named prepared statements
1 parent a2c7de1 commit 6ec85a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,10 @@ const sql = postgres()
11401140

11411141
Prepared statements will automatically be created for any queries where it can be inferred that the query is static. This can be disabled by using the `prepare: false` option. For instance — this is useful when [using PGBouncer in `transaction mode`](https://github.com/porsager/postgres/issues/93#issuecomment-656290493).
11421142

1143+
**update**: [since 1.21.0](https://www.pgbouncer.org/2023/10/pgbouncer-1-21-0)
1144+
PGBouncer supports protocol-level named prepared statements when [configured
1145+
properly](https://www.pgbouncer.org/config.html#max_prepared_statements)
1146+
11431147
## Custom Types
11441148

11451149
You can add ergonomic support for custom types, or simply use `sql.typed(value, type)` inline, where type is the PostgreSQL `oid` for the type and the correctly serialized string. _(`oid` values for types can be found in the `pg_catalog.pg_type` table.)_

0 commit comments

Comments
 (0)