首先得安装 brew,这个网上资料一大推,不细说。
brew install PgBouncer
The config file: /usr/local/etc/pgbouncer.ini is in the "ini" format and you
will need to edit it for your particular setup. See:
https://pgbouncer.github.io/config.html
The auth_file option should point to the /usr/local/etc/userlist.txt file which
can be populated by the /usr/local/opt/pgbouncer/bin/mkauth.py script.
To have launchd start pgbouncer now and restart at login:
brew services start pgbouncer
Or,if you don't want/need a background service you can just run:
pgbouncer -q /usr/local/etc/pgbouncer.ini
相关资料
原文链接:https://www.f2er.com/postgresql/193484.html