【问题标题】:pgbouncer vs postgres hba config filepgbouncer vs postgres hba 配置文件
【发布时间】:2016-11-01 04:35:51
【问题描述】:

我有带有 hba 配置文件的 postgres 和用于连接池的 pgbouncer

我只想通过更改连接字符串的端口号(6543 而不是5432)来连接到pgbouncer(而不是postgres)。 postgrespgbouncer 在同一台服务器上运行。

到目前为止,我已经能够让pgbouncer 使用其自己的具有重复用户/密码的 hba 文件运行。手动同步 postgrespgbouncer 用户/密码是不可维护的(或至少非常痛苦)。

有什么方法可以让pgbouncer 将用户/密码登录尝试转发到postgres 原样?还是我试图让我的信心与事情的发展方向背道而驰?

【问题讨论】:

    标签: postgresql pgbouncer


    【解决方案1】:

    您使用哪个版本的 pgbouncer?从 1.6 开始,它可以直接从数据库加载用户/密码。您只需要指定“auth_query” 在你的配置文件中。 https://pgbouncer.github.io/config.html

    【讨论】:

      猜你喜欢
      • 2021-08-14
      • 2019-03-08
      • 2022-12-20
      • 2012-09-10
      • 1970-01-01
      • 1970-01-01
      • 2012-11-17
      • 2013-05-14
      • 2012-11-23
      相关资源
      最近更新 更多