> Anyway, I'm minus quite a lot on silencing this warning, because
> it is telling you about real problems you are likely to hit.
+1
I just wanted to clarify that the concern here isn’t about the warning itself being shown, but rather about the reason it conveys, which can be a bit misleading.
The current warning suggests that some psql features might not work due to the server version being 1.20. This can lead to confusion - as it did in my case - making it seem like there's an issue with PgBouncer v1.20.1. However, this same warning appears even when we use the latest version of PgBouncer, so the message doesn't accurately reflect the root cause.
Instead, a clearer message like:
"WARNING: non-PostgreSQL server. Some psql features might not work."
|
would be more appropriate. It immediately communicates that the server is not PostgreSQL (as in the case of PgBouncer), which would naturally explain why some psql features (like \d commands, as Euler mentioned) may not function as expected. This avoids unnecessary suspicion about the PgBouncer version being used.
The main goal here is not to suppress the warning altogether, but to make the message more meaningful and reflective of the actual scenario.
If we can reliably detect that it’s a non-PostgreSQL server, we could adjust the warning accordingly and avoid doing a (client-server)version comparison that doesn’t apply in this context.
Thanks & Regards,
Shaik Mohammad Mujeeb
Member Technical Staff
Zoho Corp