Re: fast refresh materialized view

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: "Pradhan, Sabin" <Sabin(dot)Pradhan(at)finra(dot)org>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: fast refresh materialized view
Date: 2015-11-14 16:22:36
Message-ID: 249772231.3141506.1447518156518.JavaMail.yahoo@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday, November 13, 2015 4:02 PM, "Pradhan, Sabin" <Sabin(dot)Pradhan(at)finra(dot)org> wrote:

> Does postgres has fast refresh materialized view that supports
> incremental refresh. In oracle , this is achieve by materialized
> view log. Not sure how to implement it in postgres.

There has been work toward that end, but for now the best you can
do is REFRESH MATERIALIZED VIEW CONCURRENTLY. This still
materializes the full view in a temp table, but essentially "diffs"
that against the existing data to apply an incremental change set.
The can be done concurrently with reads against the materialized
view and with reads and writes against the source tables.

We are probably at least two years from having what you describe.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steven Grimm 2015-11-14 16:49:54 Re: Poor performance on 9.4.4 when matching multiple columns from left side of LATERAL join
Previous Message Thomas Kellerer 2015-11-14 09:30:16 Re: Poor performance on 9.4.4 when matching multiple columns from left side of LATERAL join