Sha256: 623f91e6df46ddba53f8cacb7407a462c7422e35d8c9d9444756bdbf662c72bf
Contents?: true
Size: 538 Bytes
Versions: 9
Compression:
Stored size: 538 Bytes
Contents
/* Queries with active exclusive locks */ SELECT pg_stat_activity.pid, pg_class.relname, pg_locks.transactionid, pg_locks.granted, pg_stat_activity.query AS query_snippet, age(now(),pg_stat_activity.query_start) AS "age" FROM pg_stat_activity,pg_locks left OUTER JOIN pg_class ON (pg_locks.relation = pg_class.oid) WHERE pg_stat_activity.query <> '<insufficient privilege>' AND pg_locks.pid = pg_stat_activity.pid AND pg_locks.mode = 'ExclusiveLock' AND pg_stat_activity.pid <> pg_backend_pid() order by query_start;
Version data entries
9 entries across 9 versions & 2 rubygems