Incremental refresh of materialized view - Patch

From: "hari(dot)prasath" <hari(dot)prasath(at)zohocorp(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Incremental refresh of materialized view - Patch
Date: 2016-05-12 06:05:23
Message-ID: 154a391d341.1176179cb4319.144192970510819074@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all

I am building a patch to refresh materialized view incrementally from the change set decoded by using logical decoding from WAL.

As of now i can able to generate the changes that has to be updated in the materialized view but the thing was it not possible to do any DML operations on MATVIEWS.

Only from the concurrent refresh of matviews the DML operations are allowed.

However if the same methods in matview.c OpenMatViewIncrementalMaintenance &amp; CloseMatViewIncrementalMaintenance are mad extern its possible to do DML from the patches like i am building now.

Is there any other way of doing DML operations on materialized views from patch.?

&lt;correct me if i am wrong&gt;

cheers

- Harry

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message konstantin knizhnik 2016-05-12 07:12:15 Re: Academic help for Postgres
Previous Message Michael Paquier 2016-05-12 05:58:30 Re: silent data loss with ext4 / all current versions