pg_auth / pg_pwd文件的格式

时间:2013-02-15 20:39:16

标签: postgresql pgbouncer

设置pgbouncer时,需要创建一个auth文件,“文件格式与PostgreSQL pg_auth / pg_pwd文件相同”。这种格式是什么?试图谷歌产生这句话的页​​面。 http://www.google.com/search?q=pg_pwd+auth+file+format&oq=pg_pwd+auth+file+forma

1 个答案:

答案 0 :(得分:3)

在你的pgbouncer.ini

auth_type = trust
auth_file = /etc/pgbouncer/userlist.txt

在userlist.txt

"username" "password"

注意引号。见http://pgbouncer.projects.pgfoundry.org/doc/config.html#_authentication_file_format