Re: [GENERAL] Incremental refresh - Materialized view - Mailing list pgsql-general

From Laurenz Albe
Subject Re: [GENERAL] Incremental refresh - Materialized view
Date
Msg-id 1510041269.2845.44.camel@cybertec.at
Whole thread Raw
In response to [GENERAL] Incremental refresh - Materialized view  (Krithika Venkatesh <krithikavenkatesh31@gmail.com>)
List pgsql-general
Krithika Venkatesh wrote:
> I need to implement incremental refresh of materialized view.
> 
> Please let me know how to do the incremental refresh of materialized view in postgresql 9.5.9 version. 
> 
> Is there anything similar to materialized view log in postgresql.

There is no such feature in PostgreSQL (yet), so you'll have to
do it yourself.

The "materialized view" would then be a regular table (with read only
access), and each underlying table would have a trigger that records
changes with a timestamp to a log table.

You can then write a function that brings the "materialized view"
up to date.

Yours,
Laurenz Albe


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Krithika Venkatesh
Date:
Subject: Re: [GENERAL] Incremental refresh - Materialized view
Next
From: Rakesh Kumar
Date:
Subject: Re: [GENERAL] Incremental refresh - Materialized view