From: petere (@petere) <noreply+petere@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: Re: [pgbouncer/pgbouncer] issue #715: Concurrent use of RESUME with PAUSE makes PAUSE hang permanently
Date: Mon, 07 Nov 2022 15:46:09 +0000
Message-ID: <gh-pgbouncer-pgbouncer-715-c1305805146@github.com> (raw)
In-Reply-To: <gh-pgbouncer-pgbouncer-715@github.com>
References: <gh-pgbouncer-pgbouncer-715@github.com>
Looking at the implementations of `admin_cmd_pause()` and `admin_cmd_resume()`, it's easy to see how this can happen.
To fix, we might need some locking on the "pause state", or count the pause requests, or something along those lines. Ideas welcome.