Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eByiX-00077C-16 for pgsql-general@arkaria.postgresql.org; Tue, 07 Nov 2017 07:54:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eByiW-000531-Fc for pgsql-general@arkaria.postgresql.org; Tue, 07 Nov 2017 07:54:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eByiV-00051v-9P for pgsql-general@postgresql.org; Tue, 07 Nov 2017 07:54:39 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eByiS-0004nf-E4 for pgsql-general@postgresql.org; Tue, 07 Nov 2017 07:54:38 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 436D9468A0; Tue, 7 Nov 2017 08:54:33 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id VkINeyR_72uO; Tue, 7 Nov 2017 08:54:31 +0100 (CET) Message-ID: <1510041269.2845.44.camel@cybertec.at> Subject: Re: Incremental refresh - Materialized view From: Laurenz Albe To: Krithika Venkatesh , pgsql-general@postgresql.org Date: Tue, 07 Nov 2017 08:54:29 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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