-
Notifications
You must be signed in to change notification settings - Fork 281
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
CONNECTION_CLOSED with PgBouncer #93
Comments
Could you give postgres@beta a shot?
… On 9 Jul 2020, at 16:21, Dmitriy Shatalov ***@***.***> wrote:
Sometimes I have CONNECTION_CLOSED errors while using PgBouncer in transaction mode.
Any suggestions how I can may be tweak some connection parameters to prevent those kind of errors?
Direct connection to Pg seems working fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@porsager It turns out I’m already using it on dev environment. So this problem occurs in beta version. |
Ahha.. It seems that if you run in transaction mode
But it doesn't lead to anywhere, so maybe it's something they're looking at for the future? I would say this is another good reason to add an option to disable the automatic prepared statements in Postgres.js, which was also mentioned in another issue. Edit: I found pgbouncer/pgbouncer#242 and pgbouncer/pgbouncer#467 which talks about supporting it in PgBouncer. |
worth noting that since PgBouncer >=1.21.0 protocol-level named prepared statements are supported. Additional ref: https://www.pgbouncer.org/config.html#max_prepared_statements
|
Sometimes I have CONNECTION_CLOSED errors while using PgBouncer in transaction mode.
Any suggestions how I can may be tweak some connection parameters to prevent those kind of errors?
Direct connection to Pg seems working fine.
The text was updated successfully, but these errors were encountered: