pg.ddx.io  pgbouncer/pgbouncer GitHub issues and pull requests  
help / color / mirror / Atom feed
From: cosgroveb (@cosgroveb) <noreply+cosgroveb@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: [pgbouncer/pgbouncer] issue #1709: Canceling a waiting PAUSE on the admin console never returns
Date: Mon, 16 Nov 2026 00:41:49 +0000
Message-ID: <gh-pgbouncer-pgbouncer-1709@github.com> (raw)

Pressing ^C on a waiting global `PAUSE` clears the pause and resumes the pooler, but pgbouncer never [sends](https://github.com/pgbouncer/pgbouncer/blob/ac3bb6d748cefc9470c2c66e061549a59a072ce3/src/admin.c#L17...) the admin client a reply or clears `wait_for_response`. Reproduces on master.

1. `psql "port=6432 dbname=p0" -c 'select pg_sleep(60)'`.
2. In an admin console session, run `PAUSE;`.
3. Press ^C in the admin session.

The canceled `PAUSE` should end with an error.

Adjacent to #1708, where RESUME similarly leaves a waiting PAUSE unanswered.

I have a [draft](https://github.com/cosgroveb/pgbouncer/compare/fix-pause-resume-race...fix-pause-resume-race-ctlc-wi...) that fixes this, but it builds on #1708 and so I don't want to PR it until that change is merged.


Message-ID: <gh-pgbouncer-pgbouncer-1709@github.com>
Permalink:  ../gh-pgbouncer-pgbouncer-1709@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