Re: Materialized views WIP patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Kevin Grittner <kgrittn(at)ymail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Marko Tiikkaja <pgmail(at)joh(dot)to>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Materialized views WIP patch
Date: 2013-02-20 16:58:15
Message-ID: 512500A7.6000200@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2/20/13 6:13 AM, Robert Haas wrote:
>> It might be useful to have an option for this, but I don't think it
>> > should be the default. The default should be that the new database is
>> > "ready to go".
>> >
>> > Then again, when would you ever actually use that option?
> You'd use that option if you'd rather get the database mostly-up as
> soon as possible, and then worry about the materialized views
> afterwards.

Since the proposed materialized views are not available for implicit use
in query optimization, the only way an application would make use of
them is to access them directly. And if it accesses an unpopulated
materialized view, it would fail. So I don't think in the current state
a database is mostly-up without the materialized views filled in.

I can see the value in having a restore mode that postpones certain
nonessential operations, such as creating indexes or certain constraints
or even materialized views. But I think the boundaries and expectations
for that need to be defined more precisely. For example, a database
without constraints might be considered "ready for read-only use",
without secondary indexes it might be "ready for use but slow".

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Erik Rijkers 2013-02-20 17:14:48 Re: Materialized views WIP patch
Previous Message Kevin Grittner 2013-02-20 16:26:10 Re: Materialized views WIP patch

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2013-02-20 17:14:48 Re: Materialized views WIP patch
Previous Message Ian Lawrence Barwick 2013-02-20 16:58:10 Contrib module "xml2" status