ruby-pg-extras 4.6.0 → 4.7.0
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 +4 -4
- data/.circleci/config.yml +4 -3
- data/README.md +8 -8
- data/lib/ruby_pg_extras/queries/all_locks.sql +2 -1
- data/lib/ruby_pg_extras/queries/locks.sql +2 -1
- data/lib/ruby_pg_extras/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb8d111c78464e22c42ce800eb3843d44e474ee3a403680b368373fd757d2ffc
|
|
4
|
+
data.tar.gz: 0e34e7b2ff814db1de73b937b24767639c197cae5896687b18167cc33f79e206
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8124dbe7f0b64f518cecb4dd9088caca4a372c3b79d35476faeec6eb4060bcdb69ca5a2f8c460dbeda9f0c6c4c3c5e6e858f428be78770b84ecbb020ec708c9c
|
|
7
|
+
data.tar.gz: 9444732788d96f853c5a1a40d9b1d366df4ee72c5bc1659cf5ff69117dd590a6840f766f02c09db8163772c6bfb9219f5a0d83cf14e02e7fdc59cd7a4af2f886
|
data/.circleci/config.yml
CHANGED
|
@@ -2,7 +2,7 @@ version: 2
|
|
|
2
2
|
jobs:
|
|
3
3
|
test:
|
|
4
4
|
docker:
|
|
5
|
-
- image: cimg/ruby:2.6
|
|
5
|
+
- image: cimg/ruby:2.7.6
|
|
6
6
|
environment:
|
|
7
7
|
DATABASE_URL: postgresql://postgres:secret@localhost:5432/ruby-pg-extras-test
|
|
8
8
|
- image: cimg/postgres:11.15
|
|
@@ -38,10 +38,11 @@ jobs:
|
|
|
38
38
|
- checkout
|
|
39
39
|
- run: gem update --system
|
|
40
40
|
- run: gem install bundler
|
|
41
|
-
- run: bundle config set --local path 'vendor/bundle'
|
|
42
|
-
- run: bundle install
|
|
43
41
|
- run: sudo apt-get update --allow-releaseinfo-change
|
|
44
42
|
- run: sudo apt install postgresql-client
|
|
43
|
+
- run: sudo apt install libpq-dev
|
|
44
|
+
- run: bundle config set --local path 'vendor/bundle'
|
|
45
|
+
- run: bundle install
|
|
45
46
|
- run: dockerize -wait tcp://postgres11:5432 -timeout 1m
|
|
46
47
|
- run:
|
|
47
48
|
name: Run specs for PG 11
|
data/README.md
CHANGED
|
@@ -255,14 +255,14 @@ This command provides information on the efficiency of indexes, represented as w
|
|
|
255
255
|
|
|
256
256
|
RubyPgExtras.locks
|
|
257
257
|
|
|
258
|
-
procpid | relname | transactionid | granted | query_snippet | mode | age
|
|
259
|
-
|
|
260
|
-
31776 | | | t | <IDLE> in transaction | ExclusiveLock | 00:19:29.837898
|
|
261
|
-
31776 | | 1294 | t | <IDLE> in transaction | RowExclusiveLock | 00:19:29.837898
|
|
262
|
-
31912 | | | t | select * from hello; | ExclusiveLock | 00:19:17.94259
|
|
263
|
-
3443 | | | t | +| ExclusiveLock | 00:00:00
|
|
264
|
-
| | | | select +| |
|
|
265
|
-
| | | | pg_stat_activi | |
|
|
258
|
+
procpid | relname | transactionid | granted | query_snippet | mode | age | application |
|
|
259
|
+
---------+---------+---------------+---------+-----------------------+------------------------------------------------------
|
|
260
|
+
31776 | | | t | <IDLE> in transaction | ExclusiveLock | 00:19:29.837898 | bin/rails
|
|
261
|
+
31776 | | 1294 | t | <IDLE> in transaction | RowExclusiveLock | 00:19:29.837898 | bin/rails
|
|
262
|
+
31912 | | | t | select * from hello; | ExclusiveLock | 00:19:17.94259 | bin/rails
|
|
263
|
+
3443 | | | t | +| ExclusiveLock | 00:00:00 | bin/sidekiq
|
|
264
|
+
| | | | select +| | |
|
|
265
|
+
| | | | pg_stat_activi | | |
|
|
266
266
|
(4 rows)
|
|
267
267
|
```
|
|
268
268
|
|
|
@@ -7,7 +7,8 @@ SELECT
|
|
|
7
7
|
pg_locks.granted,
|
|
8
8
|
pg_locks.mode,
|
|
9
9
|
pg_stat_activity.query AS query_snippet,
|
|
10
|
-
age(now(),pg_stat_activity.query_start) AS "age"
|
|
10
|
+
age(now(),pg_stat_activity.query_start) AS "age",
|
|
11
|
+
pg_stat_activity.application_name AS application
|
|
11
12
|
FROM pg_stat_activity,pg_locks left
|
|
12
13
|
OUTER JOIN pg_class
|
|
13
14
|
ON (pg_locks.relation = pg_class.oid)
|
|
@@ -7,7 +7,8 @@ SELECT
|
|
|
7
7
|
pg_locks.granted,
|
|
8
8
|
pg_locks.mode,
|
|
9
9
|
pg_stat_activity.query AS query_snippet,
|
|
10
|
-
age(now(),pg_stat_activity.query_start) AS "age"
|
|
10
|
+
age(now(),pg_stat_activity.query_start) AS "age",
|
|
11
|
+
pg_stat_activity.application_name AS application
|
|
11
12
|
FROM pg_stat_activity,pg_locks left
|
|
12
13
|
OUTER JOIN pg_class
|
|
13
14
|
ON (pg_locks.relation = pg_class.oid)
|