You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request:
"select sum(xact_commit) as xact_commit, sum(blks_hit) as blks_hit, sum(blks_read) as blks_read, sum(conflicts) as conflicts, sum(deadlocks) as deadlocks, sum(xact_rollback) as xact_rollback, sum(temp_bytes) as temp_bytes, sum(temp_files) as temp_files, sum(tup_deleted) as tup_deleted, sum(tup_fetched) as tup_fetched, sum(tup_inserted) as tup_inserted, sum(tup_returned) as tup_returned, sum(tup_updated) as tup_updated, sum(checksum_failures) as checksum_failures from pg_catalog.pg_stat_database"
causes error:
"INSTANCE#011-#011catch error: int() argument must be a string or a number, not 'NoneType'"
because in my working database the field 'checksum_failures' is NULL.
Added a function returning '0' if the value is 'NULL'
0 commit comments