Re: refresh materialized view concurrently - Mailing list pgsql-hackers

From Robert Haas
Subject Re: refresh materialized view concurrently
Date
Msg-id CA+TgmoY_r784yXm3YYJ1LvtL=H4s_W8zovaAHVR0_43q3SbNpA@mail.gmail.com
Whole thread Raw
In response to Re: refresh materialized view concurrently  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-hackers
On Mon, Jun 17, 2013 at 11:21 AM, Kevin Grittner <kgrittn@ymail.com> wrote:
> Nicolas Barbier <nicolas.barbier@gmail.com> wrote:
>> 2013/6/17 Heikki Linnakangas <hlinnakangas@vmware.com>:
>
>>
>>> +                                errmsg("concurrent refresh requires a
>>> unique index on just columns for all rows of the materialized view")));
>>
>> Maybe my english is failing me here, but I don’t understand the “just” part.
>
> It means that the index must not use any expressions in the list of
> what it's indexing on -- only column names.  Suggestions for better
> wording would be welcome.

Random idea:

ERROR: materialized view \"%s\" does not have a unique key

Perhaps augmented with:

HINT: Create a UNIQUE btree index with no WHERE clause on one or more
columns of the materialized view.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Request for Patch Feedback: Lag & Lead Window Functions Can Ignore Nulls
Next
From: "David E. Wheeler"
Date:
Subject: Re: [PATCH] Remove useless USE_PGXS support in contrib