-
1.21.0 added support for named prepared statements, yay! So I have been reading https://www.pgbouncer.org/config.html#max_prepared_statements to try to understand if this will work with the PostgreSQL driver we are using. It names (named prepared) statements with Do I understand correctly that the new prepared statements mode will have trouble with such a naming pattern, if 2 instances of the app for example prepare 2 different queries both with the name |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That should work totally fine. PgBouncer deduplicates prepared statements based on the actual query that is being prepared. So even if the clients do the following your code will work fine:
and in client 2:
|
Beta Was this translation helpful? Give feedback.
That should work totally fine. PgBouncer deduplicates prepared statements based on the actual query that is being prepared. So even if the clients do the following your code will work fine:
client 1:
and in client 2: