ruby-pg-extras 4.6.0 → 4.7.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb53ae7a7af7f4c3513c51b7f21c46d942d4f34fa1ef834209be64bcba41e06e
|
4
|
+
data.tar.gz: e05581ad23a80dc16b6dd9f3be4a9834176ee0c3f949c2e98b61d56e23efe464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c855f02ad15802331dbe8206c85d6dab62efd5a50ef7f3a86f4c55dc395cfd8ff3e4690b6f5465424497a04ead977dc43da34c07ce7af0d0aa8ff19918ef0dfd
|
7
|
+
data.tar.gz: ed55b2c48f1425c857eba1534e431535a9b1c22c8741525ad531b92bc4652e114749c480fdcb7d662d72ec6258469c97f0b80661d9f6759fd40845a496665288
|
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)
|
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: 4.
|
4
|
+
version: 4.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|