pg.ddx.io  pgbouncer/pgbouncer GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ritojoao (@ritojoao) <noreply+ritojoao@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: Re: [pgbouncer/pgbouncer] PR #1708: Answer pending PAUSE commands canceled by RESUME
Date: Sun, 15 Nov 2026 02:58:19 +0000
Message-ID: <gh-pgbouncer-pgbouncer-1708-c6888252772@github.com> (raw)
In-Reply-To: <gh-pgbouncer-pgbouncer-1708@github.com>
References: <gh-pgbouncer-pgbouncer-1708@github.com>

Hi, and thanks for picking this up. I tested this PR (ab59242) against current master (ac3bb6d), building both from source in a postgres:17 container.

- The three-session sequence from the issue (a running `pg_sleep`, `PAUSE db`, then `RESUME db`): on master the PAUSE client never gets an answer. With the PR it returns `PAUSE command canceled by RESUME` right away. The same holds for global `PAUSE` and `RESUME`.
- With two databases paused and both PAUSE commands waiting, `RESUME` on one of them cancels only that PAUSE. The other one keeps waiting and completes once its database is idle, and that database stays paused.
- A concurrent `WAIT_CLOSE` is not touched by `RESUME`. On master, a waiting `PAUSE` could be answered with the `WAIT_CLOSE` completion, which the PR avoids.
- Of the 4 new tests, 3 fail on master and 1 passes on both. `test_operations.py` and `test_admin.py` pass with the PR (28 passed).

I also pressed ^C on a waiting PAUSE (db-level and global). The behavior is the same as master, so this PR does not change it.

What I did not test: the full pytest suite, transaction/statement pool modes, TLS/auth, non-Linux platforms, several waiters on the same database, and SIGUSR2 outside the PR's own tests. Thanks again for the fix.


view thread (8+ messages)  latest in thread

Message-ID: <gh-pgbouncer-pgbouncer-1708-c6888252772@github.com>
Permalink:  ../gh-pgbouncer-pgbouncer-1708-c6888252772@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox