Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的 PostgreSQL 服务器中的活动连接数超过某个阈值时,我打算编写一个脚本来提醒我。我在哪里可以找到可以在脚本中用于比较的表格中的这个数字?
我的 PostgreSQL 版本是 8.4.8,我的操作系统是 Debian Squeeze。
它在 pg_catalog.pg_stat_activity 视图中。每一行都是一个连接。