File tree 2 files changed +28
-12
lines changed
2 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ SELECT
14
14
idx .indisready AS is_ready,
15
15
idx .indislive AS is_live,
16
16
idx .indisreplident AS is_replica_identity,
17
- idx .indkey AS key_attributes,
18
- idx .indcollation AS collation,
19
- idx .indclass AS class,
20
- idx .indoption AS options,
17
+ idx .indkey :: smallint [] AS key_attributes,
18
+ idx .indcollation :: integer [] AS collation,
19
+ idx .indclass :: integer [] AS class,
20
+ idx .indoption :: smallint [] AS options,
21
21
idx .indpred AS index_predicate,
22
22
obj_description(idx .indexrelid , ' pg_class' ) AS comment,
23
23
ix .indexdef as index_definition,
Original file line number Diff line number Diff line change @@ -15,8 +15,12 @@ test('list indexes', async () => {
15
15
{
16
16
"access_method": "btree",
17
17
"check_xmin": false,
18
- "class": "3124",
19
- "collation": "0",
18
+ "class": [
19
+ 3124,
20
+ ],
21
+ "collation": [
22
+ 0,
23
+ ],
20
24
"comment": null,
21
25
"id": 16399,
22
26
"index_attributes": [
@@ -37,10 +41,14 @@ test('list indexes', async () => {
37
41
"is_replica_identity": false,
38
42
"is_unique": true,
39
43
"is_valid": true,
40
- "key_attributes": "1",
44
+ "key_attributes": [
45
+ 1,
46
+ ],
41
47
"number_of_attributes": 1,
42
48
"number_of_key_attributes": 1,
43
- "options": "0",
49
+ "options": [
50
+ 0,
51
+ ],
44
52
"schema": "public",
45
53
"table_id": 16393,
46
54
}
@@ -56,8 +64,12 @@ test('retrieve index', async () => {
56
64
{
57
65
"access_method": "btree",
58
66
"check_xmin": false,
59
- "class": "3124",
60
- "collation": "0",
67
+ "class": [
68
+ 3124,
69
+ ],
70
+ "collation": [
71
+ 0,
72
+ ],
61
73
"comment": null,
62
74
"id": 16399,
63
75
"index_attributes": [
@@ -78,10 +90,14 @@ test('retrieve index', async () => {
78
90
"is_replica_identity": false,
79
91
"is_unique": true,
80
92
"is_valid": true,
81
- "key_attributes": "1",
93
+ "key_attributes": [
94
+ 1,
95
+ ],
82
96
"number_of_attributes": 1,
83
97
"number_of_key_attributes": 1,
84
- "options": "0",
98
+ "options": [
99
+ 0,
100
+ ],
85
101
"schema": "public",
86
102
"table_id": 16393,
87
103
}
You can’t perform that action at this time.
0 commit comments