Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What are the recommended settings for connecting via pgbouncer >= 1.21 in pool_mode = "transaction"? #1195

steve-marmalade started this conversation in General
Discussion options

There is significant discussion about using asyncpg with pgbouncer (and SQLAlchemy), e.g.
#837 and
sqlalchemy/sqlalchemy#6467

However, the majority of that discussion took place before PgBouncer 1.21 was released, which included support for prepared statements in transaction mode.

My question is, when running a new version of pgbouncer, what steps are still recommended to take? Are these suggestions still relevant?

  • Should we use prepared_statement_name_func to avoid duplicate prepared statement names?
  • Should we set server_reset_query_always ?
  • Should we set statement_cache_size=0 ?
  • Should we use NullPool?
  • Anything else I missed?

Thank you

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /