script to find currently running queries in Redshift:
select userid , query , pid , starttime , text from stv_inflight order by starttime desc;
script to find currently locks in Redshift:
select table_id, last_update, lock_owner, lock_owner_pid from stv_locks;
SELECT * FROM STV_SESSIONS;
No comments:
Post a Comment