Re: Postgresql Materialized views

From: "Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com>
To: 'Alvaro Herrera' <alvherre(at)commandprompt(dot)com>, Mark Mielke <mark(at)mark(dot)mielke(dot)cc>
Cc: Jean-Michel Pouré <jm(at)poure(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Postgresql Materialized views
Date: 2008-01-14 14:30:53
Message-ID: 1A6E6D554222284AB25ABE3229A92762715407@nrtexcus702.int.asurion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-
> owner(at)postgresql(dot)org] On Behalf Of Alvaro Herrera
> Sent: Monday, January 14, 2008 8:20 AM
> To: Mark Mielke
> Cc: Jean-Michel Pouré; pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] Postgresql Materialized views
>
> Mark Mielke wrote:
> > Alvaro Herrera wrote:
>
> >> But you had to modify your queries. I would think that a materialized
> >> views implementation worth its salt would put the view to work on the
> >> original, unmodified queries.
> >
> > I might be slow today (everyday? :-) ) - but what do you mean by this?
> The
> > only difference between *_table and *_view is that *_table is the
> summary
> > table and *_view is the view.
>
> My point is that you should be able to query _table and the system
> should automatically use the view, without you saying so (except by
> initially creating them).
>

I agree! From a BI perspective, a materialized view is worthless if you
have to re-write your query. There isn't a tool on the market that is smart
enough to rewrite a query to a view because all other databases handle the
rewriting internally.

Jon

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-01-14 14:38:52 Re: Postgresql Materialized views
Previous Message Alvaro Herrera 2008-01-14 14:20:17 Re: Postgresql Materialized views