postgresai 0.18.1-rc.1 → 0.18.1-rc.3
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.
- package/dist/bin/postgres-ai.js +14 -4
- package/package.json +1 -1
- package/schemas/F004.schema.json +52 -2
- package/schemas/G001.schema.json +65 -3
- package/schemas/H004.schema.json +26 -5
package/dist/bin/postgres-ai.js
CHANGED
|
@@ -13538,7 +13538,7 @@ var {
|
|
|
13538
13538
|
// package.json
|
|
13539
13539
|
var package_default = {
|
|
13540
13540
|
name: "postgresai",
|
|
13541
|
-
version: "0.18.1-rc.
|
|
13541
|
+
version: "0.18.1-rc.3",
|
|
13542
13542
|
description: "postgres_ai CLI",
|
|
13543
13543
|
license: "Apache-2.0",
|
|
13544
13544
|
private: false,
|
|
@@ -16898,7 +16898,7 @@ var Result = import_lib.default.Result;
|
|
|
16898
16898
|
var TypeOverrides = import_lib.default.TypeOverrides;
|
|
16899
16899
|
var defaults = import_lib.default.defaults;
|
|
16900
16900
|
// package.json
|
|
16901
|
-
var version = "0.18.1-rc.
|
|
16901
|
+
var version = "0.18.1-rc.3";
|
|
16902
16902
|
var package_default2 = {
|
|
16903
16903
|
name: "postgresai",
|
|
16904
16904
|
version,
|
|
@@ -40913,8 +40913,10 @@ index_data as (
|
|
|
40913
40913
|
not i2.indisprimary -- index 1 is not primary
|
|
40914
40914
|
and not i2.indisunique -- index 1 is not unique (unique indexes serve constraint purpose)
|
|
40915
40915
|
and am1.amname = am2.amname -- same access type
|
|
40916
|
-
|
|
40917
|
-
|
|
40916
|
+
-- index 2's columns and opclasses are a leading prefix of index 1's;
|
|
40917
|
+
-- the trailing separator keeps column 1 from matching column 12 (#482)
|
|
40918
|
+
and (i1.columns || ' ') like (i2.columns || ' %')
|
|
40919
|
+
and (i1.opclasses || ', ') like (i2.opclasses || ', %')
|
|
40918
40920
|
-- index expressions is same
|
|
40919
40921
|
and pg_get_expr(i1.indexprs, i1.indrelid) is not distinct from pg_get_expr(i2.indexprs, i2.indrelid)
|
|
40920
40922
|
-- index predicates is same
|
|
@@ -43065,6 +43067,14 @@ var CHECKUP_DICTIONARY_DATA = [
|
|
|
43065
43067
|
category: "system",
|
|
43066
43068
|
sort_order: null,
|
|
43067
43069
|
is_system_report: false
|
|
43070
|
+
},
|
|
43071
|
+
{
|
|
43072
|
+
code: "W001",
|
|
43073
|
+
title: "Weekly overview",
|
|
43074
|
+
description: "Database load and top queries over the last week, and the three most important actions",
|
|
43075
|
+
category: "monitoring",
|
|
43076
|
+
sort_order: null,
|
|
43077
|
+
is_system_report: false
|
|
43068
43078
|
}
|
|
43069
43079
|
];
|
|
43070
43080
|
|
package/package.json
CHANGED
package/schemas/F004.schema.json
CHANGED
|
@@ -72,7 +72,47 @@
|
|
|
72
72
|
"last_vacuum_epoch": { "type": "number" },
|
|
73
73
|
"real_size_pretty": { "type": "string" },
|
|
74
74
|
"extra_size_pretty": { "type": "string" },
|
|
75
|
-
"bloat_size_pretty": { "type": "string" }
|
|
75
|
+
"bloat_size_pretty": { "type": "string" },
|
|
76
|
+
"n_live_tup": { "type": ["integer", "null"] },
|
|
77
|
+
"n_dead_tup": { "type": ["integer", "null"] },
|
|
78
|
+
"vacuum_threshold": { "type": ["integer", "null"] },
|
|
79
|
+
"autovacuum_runs_in_window": { "type": ["integer", "null"] },
|
|
80
|
+
"vacuum_runs_in_window": { "type": ["integer", "null"] },
|
|
81
|
+
"n_tup_ins_in_window": { "type": ["integer", "null"] },
|
|
82
|
+
"n_tup_upd_in_window": { "type": ["integer", "null"] },
|
|
83
|
+
"n_tup_del_in_window": { "type": ["integer", "null"] },
|
|
84
|
+
"n_tup_hot_upd_in_window": { "type": ["integer", "null"] },
|
|
85
|
+
"table_size_bytes": { "type": ["integer", "null"] },
|
|
86
|
+
"toast_size_bytes": { "type": ["integer", "null"] },
|
|
87
|
+
"table_size_min_in_window_bytes": { "type": ["integer", "null"] },
|
|
88
|
+
"table_size_max_in_window_bytes": { "type": ["integer", "null"] },
|
|
89
|
+
"bloat_size_min_in_window_bytes": { "type": ["integer", "null"] },
|
|
90
|
+
"bloat_size_max_in_window_bytes": { "type": ["integer", "null"] },
|
|
91
|
+
"seconds_since_last_vacuum": { "type": ["integer", "null"] },
|
|
92
|
+
"vacuum_recorded": { "type": ["boolean", "null"] },
|
|
93
|
+
"autovacuum_disabled": { "type": ["boolean", "null"] }
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"history": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["daily", "first_reading_at"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"daily": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"required": ["days_ago", "at", "total_bloat_size_bytes"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"days_ago": { "type": "integer" },
|
|
109
|
+
"at": { "type": ["string", "null"] },
|
|
110
|
+
"total_bloat_size_bytes": { "type": "integer" }
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"first_reading_at": { "type": ["string", "null"] },
|
|
115
|
+
"window_seconds": { "type": "integer" }
|
|
76
116
|
}
|
|
77
117
|
},
|
|
78
118
|
"dbEntry": {
|
|
@@ -93,7 +133,17 @@
|
|
|
93
133
|
"total_bloat_size_bytes": { "type": "number" },
|
|
94
134
|
"total_bloat_size_pretty": { "type": "string" },
|
|
95
135
|
"database_size_bytes": { "type": "number" },
|
|
96
|
-
"database_size_pretty": { "type": "string" }
|
|
136
|
+
"database_size_pretty": { "type": "string" },
|
|
137
|
+
"history": { "$ref": "#/$defs/history" },
|
|
138
|
+
"autovacuum_settings": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": ["autovacuum_vacuum_threshold", "autovacuum_vacuum_scale_factor"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"autovacuum_vacuum_threshold": { "type": "number" },
|
|
144
|
+
"autovacuum_vacuum_scale_factor": { "type": "number" }
|
|
145
|
+
}
|
|
146
|
+
}
|
|
97
147
|
}
|
|
98
148
|
},
|
|
99
149
|
"status": {
|
package/schemas/G001.schema.json
CHANGED
|
@@ -117,7 +117,71 @@
|
|
|
117
117
|
"type": "object",
|
|
118
118
|
"additionalProperties": { "$ref": "#/$defs/setting" }
|
|
119
119
|
},
|
|
120
|
-
"analysis": { "$ref": "#/$defs/analysis" }
|
|
120
|
+
"analysis": { "$ref": "#/$defs/analysis" },
|
|
121
|
+
"activity": { "$ref": "#/$defs/activity" }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"peak": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"required": ["peak"],
|
|
128
|
+
"properties": {
|
|
129
|
+
"peak": { "type": "integer" },
|
|
130
|
+
"peak_at": { "type": "string" },
|
|
131
|
+
"mean": { "type": "number" }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"activity": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"properties": {
|
|
138
|
+
"window": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": ["start", "end", "seconds"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"start": { "type": "string" },
|
|
144
|
+
"end": { "type": "string" },
|
|
145
|
+
"seconds": { "type": "integer" },
|
|
146
|
+
"samples": { "type": "integer" },
|
|
147
|
+
"sample_seconds": { "type": ["integer", "null"] }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"databases": { "type": "array", "items": { "type": "string" } },
|
|
151
|
+
"connections": { "$ref": "#/$defs/peak" },
|
|
152
|
+
"active_statements": { "$ref": "#/$defs/peak" },
|
|
153
|
+
"applications": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": ["application", "peak"],
|
|
159
|
+
"properties": { "application": { "type": "string" }, "peak": { "type": "integer" } }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"server": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"properties": {
|
|
166
|
+
"last_start": { "type": "string" },
|
|
167
|
+
"starts_in_window": { "type": "integer" },
|
|
168
|
+
"stats_resets": { "type": "integer" },
|
|
169
|
+
"sessions_fatal": { "type": "integer" },
|
|
170
|
+
"sessions_killed": { "type": "integer" },
|
|
171
|
+
"sessions_abandoned": { "type": "integer" }
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"host_memory": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["total_bytes", "available_min_pct"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"total_bytes": { "type": "integer" },
|
|
180
|
+
"available_min_pct": { "type": "number" },
|
|
181
|
+
"available_min_at": { "type": "string" },
|
|
182
|
+
"available_p5_pct": { "type": "number" }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
121
185
|
}
|
|
122
186
|
},
|
|
123
187
|
"nodeResult": {
|
|
@@ -131,5 +195,3 @@
|
|
|
131
195
|
}
|
|
132
196
|
}
|
|
133
197
|
}
|
|
134
|
-
|
|
135
|
-
|
package/schemas/H004.schema.json
CHANGED
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"index_name": { "type": "string" },
|
|
50
50
|
"index_definition": { "type": "string" },
|
|
51
51
|
"index_size_bytes": { "type": "number" },
|
|
52
|
-
"index_size_pretty": { "type": "string" }
|
|
52
|
+
"index_size_pretty": { "type": "string" },
|
|
53
|
+
"also_unused": { "type": "boolean" }
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
"redundantIndex": {
|
|
@@ -86,7 +87,13 @@
|
|
|
86
87
|
"index_size_pretty": { "type": "string" },
|
|
87
88
|
"table_size_pretty": { "type": "string" },
|
|
88
89
|
"redundant_to": { "type": "array", "items": { "$ref": "#/$defs/redundantToIndex" } },
|
|
89
|
-
"redundant_to_parse_error": { "type": "string" }
|
|
90
|
+
"redundant_to_parse_error": { "type": "string" },
|
|
91
|
+
"also_unused": { "type": "boolean" },
|
|
92
|
+
"index_usage_first": { "type": "number" },
|
|
93
|
+
"index_usage_first_epoch": { "type": "number" },
|
|
94
|
+
"index_usage_first_time": { "type": "string" },
|
|
95
|
+
"index_usage_last_epoch": { "type": "number" },
|
|
96
|
+
"index_usage_last_time": { "type": "string" }
|
|
90
97
|
}
|
|
91
98
|
},
|
|
92
99
|
"dbEntry": {
|
|
@@ -106,7 +113,23 @@
|
|
|
106
113
|
"total_size_bytes": { "type": "number" },
|
|
107
114
|
"total_size_pretty": { "type": "string" },
|
|
108
115
|
"database_size_bytes": { "type": "number" },
|
|
109
|
-
"database_size_pretty": { "type": "string" }
|
|
116
|
+
"database_size_pretty": { "type": "string" },
|
|
117
|
+
"usage_readings": { "$ref": "#/$defs/usageReadings" }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"usageReadings": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"required": ["start_epoch", "start_time", "end_epoch", "end_time", "lookback", "reading_step", "restart_in_window", "reset_in_window"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"start_epoch": { "type": "number" },
|
|
126
|
+
"start_time": { "type": "string" },
|
|
127
|
+
"end_epoch": { "type": "number" },
|
|
128
|
+
"end_time": { "type": "string" },
|
|
129
|
+
"lookback": { "type": "string" },
|
|
130
|
+
"reading_step": { "type": "string" },
|
|
131
|
+
"restart_in_window": { "type": ["boolean", "null"] },
|
|
132
|
+
"reset_in_window": { "type": ["boolean", "null"] }
|
|
110
133
|
}
|
|
111
134
|
},
|
|
112
135
|
"data": {
|
|
@@ -124,5 +147,3 @@
|
|
|
124
147
|
}
|
|
125
148
|
}
|
|
126
149
|
}
|
|
127
|
-
|
|
128
|
-
|