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
Weird Message in PGB log #901
Comments
It is from cancellation support enhancements #666 When a client requests a query to be cancelled, it opens a new TCP connection to pgbouncer and pgbouncer handles forwarding the request to Postgres. Change #666 is an enhancement to allow multiple pgbouncers to forward cancellations to the correct pgbouncer instance and it changed some log structure, as far as I can tell. Here is another write-up if you're unfamiliar with how query cancellation works https://www.cybertec-postgresql.com/en/cancel-hanging-postgresql-query/ |
Hmm, that probably shouldn't be a LOG. DEBUG/NOISE would be better. |
Or maybe also configurable. I imagine cancellation details aren't very useful outside multi pgbouncer/peered setups? |
This log line was introduced in pgbouncer#666, because that significantly changed our cancellation logic. But when a client sends many cancellations this will flood the logs with many identical log lines. To avoid that this lowers the log level to debug. Also start using `slog_xxx` functions instead of `log_xxx` functions for easier debugging in `forward_cancel_request`. Fixes pgbouncer#901
This log line was introduced in #666, because that significantly changed our cancellation logic. But when a client sends many cancellations this will flood the logs with many identical log lines. To avoid that this lowers the log level to debug. Also start using `slog_xxx` functions instead of `log_xxx` functions for easier debugging in `forward_cancel_request`. Fixes #901
thanks! |
This is just a snippet, but I get tons of these "sending cancel request" logs. No ERROR or FATAL messages, just these LOG messages. Using PGBouncer 1.19.1 on PG 12.15 on Debian 10 buster
I cannot find anything that explains what this message means. I see other references to it but only in the context of another log message indicating ERROR or FATAL.
The text was updated successfully, but these errors were encountered: