Regarding this type of error in PgBouncer log:
2020-03-10 03:46:01.730 EDT  LOG C-0xa5cf00: testdb/[email protected]:49214 closing because: query_wait_timeout (age=120s) 2020-03-10 03:46:01.730 EDT  WARNING C-0xa5cf00: testdb/[email protected]:49214 pooler error: query_wait_timeout
Is there any possibility to see (or to log) the query that triggered the error? What are the most frequent causes for this error? a stopped server, a busy server?
UPDATE: the log file from PostgreSQL does not show any error at 2020-03-10 03:46:01