title: how-to connect to pgbouncer internal database
body: <p>would you be so kind to advise how to connect to <code>pgbouncer</code>'s internal database ?</p>
  
  <p>I try to follow the community instructions here: <a href="https://www.depesz.com/2012/12/02/what-is-the-point-of-bouncing/" rel="nofollow noreferrer">https://www.depesz.com/2012/12/02/what-is-the-point-of-bouncing/</a>
  and more specifically:</p>
  
  <pre><code>$ 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
  </code></pre>
  
  <p>But I don't know what I am doing wrong. The <code>postgres</code> user should be internal one.</p>
  
  <p><strong>EDIT</strong>: as a <code>postgres</code> user if I list all databases present, I get</p>
  
  <pre><code>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)
  </code></pre>