Skip to content

Commit 41397b8

Browse files
committed
PMM-14368 Fixes
1 parent 768230a commit 41397b8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

collector/pg_stat_bgwriter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,29 +220,29 @@ const statCheckpointerQueryPrePG18 = `
220220
SELECT
221221
num_timed,
222222
num_requested,
223-
num_done,
223+
NULL::bigint as num_done,
224224
restartpoints_timed,
225225
restartpoints_req,
226226
restartpoints_done,
227227
write_time,
228228
sync_time,
229229
buffers_written,
230-
slru_written,
230+
NULL::bigint as slru_written,
231231
stats_reset
232232
FROM pg_stat_checkpointer;`
233233

234234
const statCheckpointerQueryPostPG18 = `
235235
SELECT
236236
num_timed,
237237
num_requested,
238-
NULL::bigint as num_done,
238+
num_done,
239239
restartpoints_timed,
240240
restartpoints_req,
241241
restartpoints_done,
242242
write_time,
243243
sync_time,
244244
buffers_written,
245-
NULL::bigint as slru_written,
245+
slru_written,
246246
stats_reset
247247
FROM pg_stat_checkpointer;`
248248

collector/pg_stat_io.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ var (
140140
object,
141141
context,
142142
reads,
143-
NULL:bigint as read_bytes,
143+
NULL::bigint as read_bytes,
144144
read_time,
145145
writes,
146-
NULL:bigint as write_bytes,
146+
NULL::bigint as write_bytes,
147147
write_time,
148148
writebacks,
149149
writeback_time,
150150
extends,
151-
NULL:numeric as extend_bytes,
151+
NULL::numeric as extend_bytes,
152152
extend_time,
153153
hits,
154154
evictions,

collector/pg_stat_user_tables.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ var (
207207
analyze_count,
208208
autoanalyze_count,
209209
pg_total_relation_size(relid) as total_size,
210-
NULL::double as total_vacuum_time,
211-
NULL::double as total_autovacuum_time,
212-
NULL::double as total_analyze_time,
213-
NULL::double as total_autoanalyze_time
210+
NULL::double precision as total_vacuum_time,
211+
NULL::double precision as total_autovacuum_time,
212+
NULL::double precision as total_analyze_time,
213+
NULL::double precision as total_autoanalyze_time
214214
FROM pg_stat_user_tables;`
215215

216216
statUserTablesQueryPostPG18 = `

0 commit comments

Comments
 (0)