📅  最后修改于: 2022-03-11 15:04:54.560000             🧑  作者: Mango
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;