Skip to content

Instantly share code, notes, and snippets.

View kerbelp's full-sized avatar

Pavel Kerbel kerbelp

View GitHub Profile
ip link show eth0
cancel 'pid';
select pg_terminate_backend('lock_owner_pid');
SELECT table_id,
last_update,
lock_owner,
lock_owner_pid,
lock_status
FROM stv_locks;
SELECT recordtime,
username,
dbname,
remotehost,
remoteport
FROM stl_connection_log
WHERE event = 'initiating session'
AND pid NOT IN (SELECT pid
FROM stl_connection_log
WHERE event = 'disconnecting session')