6

I finished my course on Oracle databases and have been playing with it since sometime. One of my friends told me that PostgreSQL is a very good database management system which has object oriented capabilities.

On an Oracle database, it is a straightforward and easy process to create materialized views. BUT despite of having heard that PostgreSQL supports materialized views from few people, I am unable to figure out how to do that.

Please advise.

1
  • 1
    Obvious question: why do you want materialised views? Why would you need them? Commented Feb 25, 2012 at 14:20

2 Answers 2

14

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


Since version 9.3, materialized views are natively supported:

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

Sign up to request clarification or add additional context in comments.

1 Comment

+1 for updating your answer to account for the new feature. Wish more people did this.
3

There's no native support for materialized views in postgres.

You could try to emulate them with triggers/stored procedures as described in this article.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.