pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Krithika Venkatesh <krithikavenkatesh31@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Incremental refresh - Materialized view
Date: Tue, 07 Nov 2017 08:54:29 +0100
Message-ID: <1510041269.2845.44.camel@cybertec.at> (raw)
In-Reply-To: <CAP7eca0Ww7nW7YM2xBXecu_7VsX0+TmjqNifVzmds=pJWcahoQ@mail.gmail.com>
References: <CAP7eca1EGAArdhRcGghi96+gkxpwx7Sx-ybjWp+3zdurasG=0A@mail.gmail.com>
	<CAP7eca1VUUCLquqSU7WZ-+fJc13iX0LHphH4C+4kDc5KeLXvnw@mail.gmail.com>
	<CAP7eca0Ww7nW7YM2xBXecu_7VsX0+TmjqNifVzmds=pJWcahoQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (8+ messages)  latest in thread

Message-ID: <1510041269.2845.44.camel@cybertec.at>
Permalink:  ../1510041269.2845.44.camel@cybertec.at/
Also on:    postgresql.org/message-id/1510041269.2845.44.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, krithikavenkatesh31@gmail.com
  Subject: Re: Incremental refresh - Materialized view
  In-Reply-To: <1510041269.2845.44.camel@cybertec.at>
  References: <CAP7eca1EGAArdhRcGghi96+gkxpwx7Sx-ybjWp+3zdurasG=0A@mail.gmail.com> <CAP7eca1VUUCLquqSU7WZ-+fJc13iX0LHphH4C+4kDc5KeLXvnw@mail.gmail.com> <CAP7eca0Ww7nW7YM2xBXecu_7VsX0+TmjqNifVzmds=pJWcahoQ@mail.gmail.com> <1510041269.2845.44.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox