Skip to content

max_prepared_statements and names of prepared statements #973

Answered by JelteF
janpio asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • s1: SELECT 1;
  • s2: SELECT 2;

and in client 2:

  • s1: SELECT 2;
  • s2: SELECT 1;

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@janpio
Comment options

@JelteF
Comment options

@janpio
Comment options

Answer selected by JelteF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants