would you be so kind to advise how to connect to pgbouncer
's internal database ?
I try to follow the community instructions here: https://www.depesz.com/2012/12/02/what-is-the-point-of-bouncing/ and more specifically:
$ sudo -i -u postgres
[sudo] password for xxx:
-bash-4.2$ psql --dbname=pgbouncer --host=x.x.x.x --port=15434
psql: ERROR: no such user: postgres
But I don't know what I am doing wrong. The postgres
user should be internal one.
EDIT: as a postgres
user if I list all databases present, I get
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
metabase | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
postgres | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
registry | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
template0 | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | postgres=CTc/postgres+
| | | | | =c/postgres
(5 rows)