설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 73건, 최근 0 건
   

접속된 세션 목록을 보고 싶어요.

글쓴이 : PostgresDBA 날짜 : 2012-12-02 (일) 12:23 조회 : 12227
아래 쿼리로 확인할수 있습니다. 필드는 일부만 기재했습니다.
PG_STAT_ACTIVITY 는 오라클로 따지자면 V$SESSION 에 해당하겠네요.

postgres@[local]:5432 postgres#SQL> select ” from pg_stat_activity;
 datid | datname  | pid  |      application_name      | client_addr | client_hostname 
-------+----------+------+----------------------------+-------------+-----------------
 12870 | postgres | 3182 | psql                       | NULL        | NULL
 12870 | postgres | 3207 | pgAdmin III - ???????????? | 10.10.10.11 | 
 25761 | scottdb  | 3208 | pgAdmin III - ???????????? | 10.10.10.11 | 
(3 rows)

Time: 1.516 ms
postgres@[local]:5432 postgres#SQL> 

   

postgresdba.com