可以在读写模式下连接到Postgres

发布于 2025-02-09 04:36:10 字数 256 浏览 0 评论 0原文

我正在使用PSQL连接到数据库。

我可以以读取模式连接(target_session_attrs param具有默认值), 但是,当我尝试以read-write模式连接

时:无法与Server'Server_name''建立可写的连接

  1. 如何在read-write模式下使用PSQL连接到DB?

I am using psql to connect to database.

I can connect in read-only mode (target_session_attrs param has default value),
but when I try to connect in read-write mode (target_session_attrs param has read-write value) I get following message:

psql: could not make a writable connection to server 'server_name'

  1. What can be the reason of this error?
  2. How can I connect to db using psql in read-write mode?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文