pg_partitioner 0.7.1 → 0.7.2
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/README.md +6 -0
- data/lib/pg_partitioner/separation_type/base.rb +11 -0
- data/lib/pg_partitioner/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9241b700143255bfd6e7c7884282ec694e63770808dc281112100862ab31fc9e
|
|
4
|
+
data.tar.gz: 870cb897406e2c56cafeeb8605957d7d233bc2af50313b2ac6cef6ee806dde28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0738eaeb102ee399f008dd232fecb1d233f9a028651f40b38d5762bfc56fa8a8d3d4be8fad543b221b5cfffe0a576b8f85048aec1393d624221ca96eb5895cd4'
|
|
7
|
+
data.tar.gz: 431cdf7f65c91d58f06a552d4f708a9953fad178264297f63828a633a084587cedf1e1a31f03a0fa6c26d2943ae7cea5e6dd7b87c2e97edfb97865d8014301c0
|
data/README.md
CHANGED
|
@@ -73,6 +73,17 @@ module PgPartitioner
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
|
+
|
|
77
|
+
def partition_table_names
|
|
78
|
+
sql = "SELECT child.relname
|
|
79
|
+
FROM pg_inherits
|
|
80
|
+
JOIN pg_class parent ON pg_inherits.inhparent = parent.oid
|
|
81
|
+
JOIN pg_class child ON pg_inherits.inhrelid = child.oid
|
|
82
|
+
WHERE parent.relname = '#{table_name}'
|
|
83
|
+
ORDER BY child.relname;"
|
|
84
|
+
|
|
85
|
+
execute_sql(sql).map { |row| row['relname'] }
|
|
86
|
+
end
|
|
76
87
|
end
|
|
77
88
|
end
|
|
78
89
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pg_partitioner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ovsapyan Mishel
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-07-22 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: bundler
|
|
@@ -61,6 +62,7 @@ homepage: http://appodeal.com
|
|
|
61
62
|
licenses: []
|
|
62
63
|
metadata:
|
|
63
64
|
allowed_push_host: https://rubygems.org
|
|
65
|
+
post_install_message:
|
|
64
66
|
rdoc_options: []
|
|
65
67
|
require_paths:
|
|
66
68
|
- lib
|
|
@@ -75,7 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
77
|
- !ruby/object:Gem::Version
|
|
76
78
|
version: '0'
|
|
77
79
|
requirements: []
|
|
78
|
-
rubygems_version: 3.
|
|
80
|
+
rubygems_version: 3.5.11
|
|
81
|
+
signing_key:
|
|
79
82
|
specification_version: 4
|
|
80
83
|
summary: Gem for a partitoning PG tables
|
|
81
84
|
test_files: []
|