[HACKERS] mat views stats

Поиск
Список
Период
Сортировка
От Jim Mlodgenski
Тема [HACKERS] mat views stats
Дата
Msg-id CAB_5SRchSz7-WmdO5szdiknG8Oj_GGqJytrk1KRd11yhcMs1KQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] mat views stats  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
I've come across a number of times where the statistics on materialized views become stale producing bad plans. It turns out that autovacuum only touches a materialized view when it is first created and ignores it on a refresh. When you have a materialized view like yesterdays_sales the data in the materialized view turns over every day. 

Attached is a patch to trigger autovacuum based on a matview refresh along with a system view pg_stat_all_matviews to show information more meaningful for materialized views.

-- Jim


Вложения

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

Предыдущее
От: Kuntal Ghosh
Дата:
Сообщение: Re: [HACKERS] Passing query string to workers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings