Materialized PostgreSQL Views

I have completed a course on Oracle databases and have since played with it. One of my friends told me that PostgreSQL is a very good database management system that has object-oriented features.

In an Oracle database, this is a simple and easy process for creating materialized views. BUT, despite the fact that I heard that PostgreSQL supports materialized representations in a few people, I can’t figure out how to do this.

Please inform.

+6
source share
2 answers

For PostgreSQL version 9.2 and below, read the following article on how to create materialized views using functions and triggers.


Since version 9.3 , materialized views are supported based on:

For more information on this topic, please refer to the following PostgreSQL documentation articles:

+13
source

There is no native support for materialized views in postgres.

You can try to simulate them using triggers / stored procedures as described in this article .

+3
source

Source: https://habr.com/ru/post/909341/


All Articles