Re: Reading on how materialized views are materialized?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Reading on how materialized views are materialized?
Date: 2018-06-25 06:23:43
Message-ID: 894dd06e-c708-bd3e-0a08-8b85e2dc27ff@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mariel Cherkassky 2018-06-25 06:44:02 Re: Investigate postgres 9.6.3 repmgr lag 4.0.4
Previous Message Ron 2018-06-24 16:37:39 Re: Investigate postgres 9.6.3 repmgr lag 4.0.4