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

Successfully use PgBouncer? #1966

Unanswered
kidoman asked this question in Q&A
Dec 12, 2022 · 1 comments · 2 replies
Discussion options

Hey fellow go-pg fans,

Is it a bad idea to use go-pg with PGB? I am reading mixed reports:

  • people trying to figure out binary_parameters
  • not able to turn off prepared statements
  • having random timeout issues

Are there folks here who are successfully using this combo? Would love to hear from you.

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

go-pg/Bun are fully compatible with PgBouncer, because they don't use prepared statements. I am using PgBouncer without any issues.

You must be logged in to vote
2 replies
Comment options

Thanks. Someone mentioned that we cannot use the transaction pool mode.

What mode would you recommend instead? Session or pool?

Comment options

I recommend to use pool_mode = transaction. go-pg works with it just fine.

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

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