Inconsitancies in pg_stat_bgwriter and pg_stat_database returned values

Поиск
Список
Период
Сортировка
От RECHTÉ Marc
Тема Inconsitancies in pg_stat_bgwriter and pg_stat_database returned values
Дата
Msg-id 721986302.8509039.1600268805471.JavaMail.zimbra@meteo.fr
обсуждение исходный текст
Ответы Re: Inconsitancies in pg_stat_bgwriter and pg_stat_database returned values  (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>)
Список pgsql-bugs
Hello, 

On one particular PG12.3 instance (same behaviour with PG12.4) we are experimenting occasional strange values in the
abovetables. 
 

For instance looping (10s. period) over this request: 

SELECT current_timestamp, checkpoints_timed, 
checkpoints_req, 
checkpoint_write_time, 
checkpoint_sync_time, 
buffers_checkpoint, 
buffers_clean, 
maxwritten_clean, 
buffers_backend, 
buffers_backend_fsync, 
buffers_alloc 
FROM pg_stat_bgwriter 

Gives: 

020-09-16 13:41:39.781609+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:41:49.815612+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:41:59.851812+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:42:09.89053+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:42:19.923291+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:42:29.959282+00,3291,227,1278516493,26327,66708986,1743379,16800,253585756,0,59080296 
2020-09-16 13:42:39.98198+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:42:50.028727+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:43:00.067928+00,3291,227,1278516493,26327,66709285,1743379,16800,253585756,0,59080296 
2020-09-16 13:43:10.090266+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:43:20.140272+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:43:30.170372+00,3291,227,1278516493,26327,66709585,1743379,16800,253585756,0,59080296 
2020-09-16 13:43:40.204747+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:43:50.239374+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:44:00.26905+00,3291,227,1278516493,26327,66709884,1743379,16800,253585756,0,59080296 
2020-09-16 13:44:10.314927+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:44:20.351091+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:44:30.408797+00,3291,227,1278516493,26327,66710184,1743379,16800,253585756,0,59080296 
2020-09-16 13:44:40.44833+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 
2020-09-16 13:44:50.484298+00,438,2,10095976,0,611207,870625,8695,612255,0,39028850 

One can see that some columns that are supposed to increase only are not always. For instance checkpoints_timed
suddenlyjumps from 438 to 3291, then back to 438. 
 

We experiment the same issue in pg_stat_database. 

Thanks



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Anastasia Lubennikova
Дата:
Сообщение: Re: BUG #16619: Amcheck detects corruption in hstore' btree index (ver 2)
Следующее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: Inconsitancies in pg_stat_bgwriter and pg_stat_database returned values