Are you sure pgbouncer is the package that is dragging in the postgresql server in your environment? On Focal, the postgresql server is in package postgresql-12 and apt-rdepends doesn't show this dependency:
$ apt-rdepends --reverse postgresql-12 | grep pgbouncer Reading package lists... Done Building dependency tree Reading state information... Done $ apt-rdepends pgbouncer | grep postgresql-12 Reading package lists... Done Building dependency tree Reading state information... Done Thanks ** Changed in: pgbouncer (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1972709 Title: Pgbouncer installs full postgresql server just to get a service account To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pgbouncer/+bug/1972709/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs