【问题标题】:Finding number of open connections to postgres database查找到 postgres 数据库的打开连接数
【发布时间】:2017-06-19 02:52:02
【问题描述】:

我连接到托管在 AWS 上的 postgres 数据库。有没有办法使用 python API 找出与该数据库的打开连接数?

【问题讨论】:

    标签: python postgresql amazon-web-services


    【解决方案1】:

    我认为这是针对 RDS 的。没有通过 AWS API 的直接方式。您可能会从 CloudWatch 获得它,但您最好连接到数据库并通过查询 pg_stat_activity 以这种方式获取计数。

    【讨论】:

      猜你喜欢
      • 2012-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-14
      • 2017-11-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多