postgresai 0.18.1-rc.2 → 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.
@@ -13538,7 +13538,7 @@ var {
13538
13538
  // package.json
13539
13539
  var package_default = {
13540
13540
  name: "postgresai",
13541
- version: "0.18.1-rc.2",
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.2";
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
- and i1.columns like (i2.columns || '%') -- index 2 includes all columns from index 1
40917
- and i1.opclasses like (i2.opclasses || '%')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgresai",
3
- "version": "0.18.1-rc.2",
3
+ "version": "0.18.1-rc.3",
4
4
  "description": "postgres_ai CLI",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -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": {
@@ -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
-