|
|
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
Вот такая ситуация, что-то непонятно вот строки из лога $ cat postgresql-9.3-main.log | grep partitions.history_p2016_07_18 2016-07-18 22:41:17 UTC 19586 LOG: automatic analyze of table "zabbix.partitions.history_p2016_07_18" 2016-07-19 01:00:50 UTC 30869 LOG: automatic analyze of table "zabbix.partitions.history_p2016_07_18" А вот запрос к pg_stat_all_tables select * from pg_stat_all_tables where relname ='history_p2016_07_18'; -[ RECORD 1 ]-----+-------------------- relid | 69282 schemaname | partitions relname | history_p2016_07_18 seq_scan | 0 seq_tup_read | 0 idx_scan | 220475 idx_tup_fetch | 1813737 n_tup_ins | 0 n_tup_upd | 0 n_tup_del | 0 n_tup_hot_upd | 0 n_live_tup | 0 n_dead_tup | 0 last_vacuum | last_autovacuum | last_analyze | last_autoanalyze | vacuum_count | 0 autovacuum_count | 0 analyze_count | 0 autoanalyze_count | 0 Почему же поля last_* и *_count пустые ? Что-то тут не то , похоже чайниковский вопрос, сорри. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2016, 19:15 |
|
||
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
rinace, А что говорит: Код: sql 1. 2. ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2016, 21:09 |
|
||
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
rinace, а нет ошибок в логах вида "using stale statistics instead of current ones because stats collector is not responding" или "pgstat wait timeout" ? статистику никто не может сбрасывать специально через pg_stat_reset() ? можно проверить время последнего сброса в pg_stat_database Код: sql 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.07.2016, 04:26 |
|
||
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
Alexius, Спасибо за наводку. в логах найдено - "using stale statistics instead of current ones because stats collector is not responding" статистика сбрасывается , кто , почему, будем разбираться ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.07.2016, 11:21 |
|
||
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
rinaceAlexius, Спасибо за наводку. в логах найдено - "using stale statistics instead of current ones because stats collector is not responding" статистика сбрасывается , кто , почему, будем разбираться Наиболее вероятно что вы отключали в какой то момент ipv6 на сервере при запущенной базе. После этого надо рестарт базы делать. Если рестарт не поможет - напишите сюда будем думать дальше. -- Maxim Boguk www.postgresql-consulting.ru ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.07.2016, 12:24 |
|
||
|
pg_stat_all_table не обновляется после automatic analyze of table ?
|
|||
|---|---|---|---|
|
#18+
Maxim Boguk, пока ничего кроме факта перезагрузки базы не обнаружено сообщение "using stale statistics instead of current ones because stats collector is not responding" повторялось только однажды после перезагрузки базы. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.07.2016, 14:07 |
|
||
|
|

start [/forum/topic.php?fid=53&msg=39276767&tid=1997102]: |
0ms |
get settings: |
11ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
183ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
55ms |
get tp. blocked users: |
2ms |
| others: | 239ms |
| total: | 529ms |

| 0 / 0 |
