Changes between Version 2 and Version 3 of jazz/PostgreSQL


Ignore:
Timestamp:
Mar 26, 2018, 10:50:18 AM (7 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/PostgreSQL

    v2 v3  
    6464postgres=# ALTER USER 使用者名稱 WITH SUPERUSER;
    6565}}}
     66
     67== 查詢目前連線數 ==
     68* 查連線總數
     69{{{
     70postgres=#  SELECT count(*) FROM pg_stat_activity;
     71 count
     72-------
     73    52
     74(1 row)
     75}}}
     76* 依資料庫查詢各別連線數
     77{{{
     78postgres=#  SELECT datname, count(*) FROM pg_stat_activity GROUP BY datname;
     79}}}
     80
     81== 修改同時連線數上限 ==
     82
     83{{{
     84
     85}}}
     86
     87== 查詢同時連線數上限 ==
     88
     89{{{
     90postgres=# SHOW max_connections;
     91}}}