Detect SIReadLock locks in the pg_locks metric (#421)

Co-authored-by: Will Rouesnel <wrouesnel@wrouesnel.com>
This commit is contained in:
Ollie Charles 2021-01-31 11:22:18 +00:00 committed by GitHub
parent 1ba1100a72
commit 301976c218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,8 @@ var queryOverrides = map[string][]OverrideQuery{
('sharelock'),
('sharerowexclusivelock'),
('exclusivelock'),
('accessexclusivelock')
('accessexclusivelock'),
('sireadlock')
) AS tmp(mode) CROSS JOIN pg_database
LEFT JOIN
(SELECT database, lower(mode) AS mode,count(*) AS count