📜  使用数据库的 postgresql 打印会话 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:54.560000             🧑  作者: Mango

代码示例1
select pid as process_id, 
       usename as username, 
       datname as database_name, 
       client_addr as client_address, 
       application_name,
       backend_start,
       state,
       state_change
from pg_stat_activity;