-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PgBouncer special settings? #1385
Comments
Found that PG listeners are incompatible with the Transaction pooling method of PgBouncer (https://pgbouncer.github.io/features.html) |
So what pooling method did you end up using? I need to use pgbouncer with go-pg so trying to make sure I am prepared. |
@kidoman session pooling was the only option, because of the listen\notify support |
@MrBadge thanks for the reply. Does session pooling help with too many idle conenctions being held by individual containers with go-pg? I will do my own research of course, but thought you might already have encountered this issue. |
When connecting to the DB through the PgBouncer the following errors approximately every 30 seconds are received:
pg: 2019/09/17 20:52:10 listener.go:126: pg: discarding bad listener connection: pg: readSimpleQuery: unexpected message 'A'
Seems it should be
notificationResponseMsg
, but the error comes from thereadSimpleQuery
method.PG connection options:
Do I have to use
MaxConnAge
or some other options to avoid this?The text was updated successfully, but these errors were encountered: