9.3 beta and materialized views

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема 9.3 beta and materialized views
Дата
Msg-id kn34lb$ach$1@ger.gmane.org
обсуждение исходный текст
Ответы Re: 9.3 beta and materialized views  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

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. 

Using pg_get_ruledef() I see that the rule is defined like this:

REATE RULE "_RETURN" AS
     ON SELECT TO matview_test DO INSTEAD
   SELECT <here comes the select of the mview>


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

Regards
Thomas

В списке pgsql-general по дате отправления:

Предыдущее
От: chiru r
Дата:
Сообщение: Re: DELETE or TRUNCATE?
Следующее
От: Steven Schlansker
Дата:
Сообщение: Re: upsert functionality