Skip to content

Ignore cancel request during setting server variables#298

Merged
JelteF merged 5 commits intopgbouncer:masterfrom
pf-qiu:ignore_cancel
Dec 8, 2024
Merged

Ignore cancel request during setting server variables#298
JelteF merged 5 commits intopgbouncer:masterfrom
pf-qiu:ignore_cancel

Conversation

@pf-qiu
Copy link
Contributor

@pf-qiu pf-qiu commented May 29, 2018

pgbouncer called 'sbuf_pause' to block the request from client during setting variables in 'find_server'. However, cancel request to Postgresql backend is sent through a new connection from psql client. In this case, the 'SET' SQL will be cancelled and an error message 'invalid server parameter' is returned to client, which is confusing from the psql client side.

pgbouncer called 'sbuf_pause' to block the request from client during setting
variables in 'find_server'. However, cancel request to Postgresql backend is
sent through a new connection from psql client. In this case, the 'SET' SQL
will be cancelled and an error message 'invalid server parameter' is returned
to client, which is confusing from the psql client side.
@lij55
Copy link

lij55 commented Sep 29, 2018

Hi,
Is there any progress about this PR? We encounter this issue while using connection pool of JDBC driver. When user cancel the query explicitly, it often give this 'invalid server parameter' error.
Thanks!

@petere petere added the bug something is broken label Sep 14, 2019
@JelteF
Copy link
Member

JelteF commented Dec 2, 2024

This seems like a real bug, and the fix was very small and looked sensible. So I resolved the merge conflicts.

@JelteF JelteF enabled auto-merge (squash) December 8, 2024 21:42
@JelteF JelteF merged commit db2bc96 into pgbouncer:master Dec 8, 2024
rajaryanece pushed a commit to rajaryanece/pgbouncer that referenced this pull request Jan 16, 2025
pgbouncer called 'sbuf_pause' to block the request from client during
setting variables in 'find_server'. However, cancel request to
Postgresql backend is sent through a new connection from psql client. In
this case, the 'SET' SQL will be cancelled and an error message 'invalid
server parameter' is returned to client, which is confusing from the
psql client side.

Co-authored-by: Peifeng Qiu <pqiu@pivotal.io>
Co-authored-by: Jelte Fennema-Nio <github-tech@jeltef.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants