Re: 9.3 beta and materialized views

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.3 beta and materialized views
Date: 2013-05-16 17:36:12
Message-ID: 18099.1368725772@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> I'm currently adding the support for materialized views to my SQL tool, and noticed that when creating a materialized view, a rewrite rule is also created that looks just like a rewrite rule for a "normal" view.

Yup.

> As the materialized view should be a "table" that can be selected from, I wonder what the purpose of the rewrite rule is?

To store the matview's definition for use in REFRESH.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fabio Rueda Carrascosa 2013-05-16 17:42:15 pg_upgrade link mode
Previous Message Steven Schlansker 2013-05-16 17:27:12 Re: upsert functionality