Re: Materialized views WIP patch

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Ants Aasma <ants(at)cybertec(dot)at>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Materialized views WIP patch
Date: 2013-03-03 20:13:31
Message-ID: CAP-rdTYYR4QA9AotruR1-WUZVj3FvocvpDdUpHS=Nka=sXUZtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

2013/3/3 Kevin Grittner <kgrittn(at)ymail(dot)com>:

> Rewriting queries using
> expressions which match the MV's query to pull from the MV instead
> of the underlying tables is the exception. While that is a "sexy"
> feature, and I'm sure one can construct examples where it helps
> performance, it seems to me unlikely to be very generally useful.
> I suspect that it exists mostly so that people who want to write an
> RFP to pick a particular product can include that as a requirement.
> In other words, I think the main benefit of automatic rewrite
> using an MV is marketing, not technical or performance.

I think that automatically using materialized views even when the
query doesn’t mention them directly, is akin to automatically using
indexes without having to mention them in the query. That way, queries
can be written the natural way, and “creating materialized views” is
an optimization that can be applied by a DBA without having to update
the application queries to use them.

Nicolas

--
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2013-03-03 21:06:56 Re: Materialized views WIP patch
Previous Message Dean Rasheed 2013-03-03 17:06:36 Re: Materialized views WIP patch

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2013-03-03 21:06:30 Re: Enabling Checksums
Previous Message Josh Berkus 2013-03-03 20:02:09 Re: Commitfest progress