May 2019
Intermediate to advanced
600 pages
20h 46m
English
Each database is completely identified by its connection string. PgBouncer will read this information from its configuration file. Just follow these steps:
[databases] myfirstdb = port=5432 host=localhost anotherdb = port=5437 host=localhost sparedb = port=5435 host=localhost
$ psql -p 6432 -h 127.0.0.1 -U postgres myfirstdbpsql (11.1)Type "help" for help.myfirstdb=# show port;port ------5432(1 row)myfirstdb=# show server_version;server_version ----------------11.1(1 row)
Read now
Unlock full access