ruby-pg-extras 5.6.7 → 5.6.9

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: 42a3a5428052619ca79dca6183515aa5b482956cdb6888a22c70e0cf0886c6a7
4
- data.tar.gz: edb51ba36d6f0a22cbef08dfe4bc3db918481f4a6c2679e261242a93bc4c5334
3
+ metadata.gz: 216ea879140f1c215e519d1dd8126b11d2aec8de9d3ab5d1f6da705950da6c2c
4
+ data.tar.gz: 6c7ff69ff13864968bbec84a38e60cd067ec5b5dd7888607f670fe64ddc738d0
5
5
  SHA512:
6
- metadata.gz: 17600add7be5f59e7ec97f05810a8d0db6d9c6a5e795217ebe818575bfec3fae06bed0cd15c555b4b1c77f5875882d0be340ebfa681372733e48b197a3072508
7
- data.tar.gz: d678d6628275c08d38d6da70d523c0973bbb51353b824425ddeab6b3a0ba30498b2a3117810c6e16cdcaf6ddbe3c036c90a74c2f06f15b43289db168bde6b49b
6
+ metadata.gz: c79857f1db12be566d37ac8d25c228545f7d850edaa135c96d04c8f9c3b9254e6188702c78b437541b3ac272dfa0e1c331d7dfebcb3f3871afa29b106d04933e
7
+ data.tar.gz: f6faa412ce5bddb5aaee75c6a825ac6f67c71a38b9f201708910c40da147ee8e2f3ad8d711f774c75515b3a3d51fcccc92239c87b6c9fc8bdac10a8336410681
@@ -56,6 +56,7 @@ module RubyPgExtras
56
56
  index_usage: { schema: DEFAULT_SCHEMA },
57
57
  index_cache_hit: { schema: DEFAULT_SCHEMA },
58
58
  table_cache_hit: { schema: DEFAULT_SCHEMA },
59
+ table_size: { schema: DEFAULT_SCHEMA },
59
60
  index_scans: { schema: DEFAULT_SCHEMA },
60
61
  cache_hit: { schema: DEFAULT_SCHEMA },
61
62
  seq_scans: { schema: DEFAULT_SCHEMA },
@@ -4,6 +4,6 @@ SELECT
4
4
  schemaname,
5
5
  indexname,
6
6
  tablename,
7
- rtrim(split_part(indexdef, '(', 2), ')') as columns
7
+ rtrim(split_part(split_part(indexdef, ' WHERE', 1), '(', 2), ')') as columns
8
8
  FROM pg_indexes
9
9
  where tablename in (select relname from pg_statio_user_tables);
@@ -5,7 +5,7 @@ SELECT c.relname AS name,
5
5
  n.nspname as schema
6
6
  FROM pg_class c
7
7
  LEFT JOIN pg_namespace n ON (n.oid = c.relnamespace)
8
- WHERE n.nspname NOT IN ('pg_catalog', 'information_schema')
8
+ WHERE n.nspname = '%{schema}'
9
9
  AND n.nspname !~ '^pg_toast'
10
10
  AND c.relkind IN ('r', 'm')
11
11
  ORDER BY pg_table_size(c.oid) DESC;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPgExtras
4
- VERSION = "5.6.7"
4
+ VERSION = "5.6.9"
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.6.7
4
+ version: 5.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-25 00:00:00.000000000 Z
11
+ date: 2025-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg