How to see the table lock details in Netezza.
How to see the table lock details in Netezza.
-
We are able to check the table lock details
using the below query and it will have only last 15 min’s or less than 15 mins
of history data.
select sessionid,
clientip,
username,
relname as table_name,
requesttime as lock_request_time,
granttime as lock_acquired_time,
command as sql,
lockstate,
BlockID
from _t_pg_locks where
lockstate='WAIT'
order by requesttime,
granttime;
Comments
Post a Comment