첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SELECT
    MAX_CONN
   ,USED
   ,RES_FOR_SUPER
   ,MAX_CONN-USED-RES_FOR_SUPER AS RES_FOR_NORMAL
FROM (SELECT COUNT(1) USED              FROM PG_STAT_ACTIVITY)                                          T1
    ,(SELECT SETTING::INT RES_FOR_SUPER FROM PG_SETTINGS WHERE NAME=$$superuser_reserved_connections$$) T2
    ,(SELECT SETTING::INT MAX_CONN      FROM PG_SETTINGS WHERE NAME=$$max_connections$$)                T3;
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요