ruby-pg-extras 5.2.3 → 5.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8998510423dd0947fd6b35f8f1ec5f0f2e5168ccbc56b82e46ac5044f356b74b
4
- data.tar.gz: fe73a1a398bff83813a2a9337e8ecb892c6bc1fb9caaaf32ad739cbfcdb93519
3
+ metadata.gz: 6c4d5a0fb254681f4c935aad78e98a47e38531ef4fb72c5599797b91f309a65a
4
+ data.tar.gz: 6f638d6de154bfc5ffaf35d59a13e46badbdebbe2f2d7253a7f5cf8414bf0d47
5
5
  SHA512:
6
- metadata.gz: 1f2541ba5926678e683d4f5402ae4b3845be554c350b64cb378c9cdf11e2b14ad6f620bb758ee7e5c8aa943abfb969eaef7d3d5ea0c1ed7efc8acb89863972b6
7
- data.tar.gz: 58b6eaf77c38ae3e21793a32d10cd86118a697d4bc5dd8ced29465a87cd9b73b5c2f7095a671fed93df2268880423213c6926c057cc0ea0a51edc4c67f65391e
6
+ metadata.gz: b669f230c765cb88d152959844ce4c6ee23821ce5bc73fa9e440d6eca417faf4e4605ae7e455e9274fe993061a3244460807ab0c26e36251f18c16ff0c004eaa
7
+ data.tar.gz: 869a5d6013edcf91362dbfb94805a943e158c6c9d34f692d09a4aea9b89a7e11d2447d98d5e6ac62b77fffc0483d494e023af7093f035957b4b2a14ff0f0391b
@@ -6,7 +6,8 @@ SELECT bl.pid AS blocked_pid,
6
6
  kl.pid AS blocking_pid,
7
7
  a.query AS blocked_statement,
8
8
  now() - a.query_start AS blocked_duration,
9
- a.application_name AS application
9
+ a.application_name AS blocked_sql_app,
10
+ ka.application_name AS blocking_sql_app
10
11
  FROM pg_catalog.pg_locks bl
11
12
  JOIN pg_catalog.pg_stat_activity a
12
13
  ON bl.pid = a.pid
@@ -15,5 +16,5 @@ JOIN pg_catalog.pg_locks kl
15
16
  ON kl.pid = ka.pid
16
17
  ON bl.transactionid = kl.transactionid AND bl.pid != kl.pid
17
18
  WHERE NOT bl.granted
18
- ORDER BY blocked_duration
19
+ ORDER BY blocked_duration DESC
19
20
  LIMIT %{limit};
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPgExtras
4
- VERSION = "5.2.3"
4
+ VERSION = "5.2.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 5.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg