Changes between Version 2 and Version 3 of jazz/PostgreSQL
- Timestamp:
- Mar 26, 2018, 10:50:18 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/PostgreSQL
v2 v3 64 64 postgres=# ALTER USER 使用者名稱 WITH SUPERUSER; 65 65 }}} 66 67 == 查詢目前連線數 == 68 * 查連線總數 69 {{{ 70 postgres=# SELECT count(*) FROM pg_stat_activity; 71 count 72 ------- 73 52 74 (1 row) 75 }}} 76 * 依資料庫查詢各別連線數 77 {{{ 78 postgres=# SELECT datname, count(*) FROM pg_stat_activity GROUP BY datname; 79 }}} 80 81 == 修改同時連線數上限 == 82 83 {{{ 84 85 }}} 86 87 == 查詢同時連線數上限 == 88 89 {{{ 90 postgres=# SHOW max_connections; 91 }}}