Is there a way to get pg_stat_activity information without using an SQL connection?

后端 未结 1 1823
盖世英雄少女心
盖世英雄少女心 2021-01-22 08:05

pg_stat_activity holds extremely useful information for post-mortem analysis of various issues, especially concurrency-related, and so augmenting errors or logging

相关标签:
1条回答
  • 2021-01-22 08:38

    Not really, but the parameter superuser_reserved_connections will help you. It defines the number of connections that are reserved for superusers precisely so that they can still connect, even if the connection limit is exhausted.

    Set the value high enough and have your monitoring process connect as superuser.

    0 讨论(0)
提交回复
热议问题