Re: Reading on how materialized views are materialized?

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Reading on how materialized views are materialized?
Дата
Msg-id 894dd06e-c708-bd3e-0a08-8b85e2dc27ff@gmx.net
обсуждение исходный текст
Ответ на Reading on how materialized views are materialized?  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
Wells Oliver schrieb am 22.06.2018 um 20:51:
> Where can I find some more detail? I am deciding between a flat table
> populated for the current month only with a script versus a
> materialized view, and I'd like to understand better if the latter is
> intelligently being refreshed (meaning years of data won't be
> re-populated, only what's changed).


MViews currently don't support "incremental" refresh in Postgres. 

A refresh of a mview is essentially the same as:

  truncate table foo;
  insert into foo 
  select ...
  from ....;

Where the SELECT part is the query used to define the mview. 






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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Investigate postgres 9.6.3 repmgr lag 4.0.4
Следующее
От: Mariel Cherkassky
Дата:
Сообщение: Re: Investigate postgres 9.6.3 repmgr lag 4.0.4