Open
Description
Description:
Describe the desired behavior, what scenario it enables and how it
would be used.
[optional Relevant Links:]
Any extra documentation required to understand the issue.
MySQL
Get status via the following SQL:
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST;
PostgresDB
SELECT
pid, -- Process ID
usename AS username, -- Connection user
datname AS database,
client_addr AS host,
state, -- e.g., 'active', 'idle', 'idle in transaction'
query -- Current/last executed query
FROM pg_stat_activity;