Re: Reading on how materialized views are materialized? - Mailing list pgsql-admin

From Thomas Kellerer
Subject Re: Reading on how materialized views are materialized?
Date
Msg-id 894dd06e-c708-bd3e-0a08-8b85e2dc27ff@gmx.net
Whole thread Raw
In response to Reading on how materialized views are materialized?  (Wells Oliver <wells.oliver@gmail.com>)
List 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 by date:

Previous
From: Ron
Date:
Subject: Re: Investigate postgres 9.6.3 repmgr lag 4.0.4
Next
From: Mariel Cherkassky
Date:
Subject: Re: Investigate postgres 9.6.3 repmgr lag 4.0.4