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

From Simon Riggs
Subject Re: refresh materialized view concurrently
Date
Msg-id CA+U5nMLOxUyhoBnA7uDiwGX2fbXsK-ap6CQ7mubvZez89pf1qA@mail.gmail.com
Whole thread Raw
In response to refresh materialized view concurrently  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: refresh materialized view concurrently  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-hackers
On 14 June 2013 17:05, Kevin Grittner <kgrittn@ymail.com> wrote:
> Attached is a patch for REFRESH MATERIALIZED VIEW CONCURRENTLY for
> 9.4 CF1.  The goal of this patch is to allow a refresh without
> interfering with concurrent reads, using transactional semantics.

Is there a reason to keep the non-concurrent behaviour? Anybody that
wants to explicitly lock should just run a LOCK statement. Can't we
treat behaviour when fully locked as an optimisation, so we can just
do the right thing without extra thought and keywords?

> It is my hope to get this committed during this CF to allow me to
> focus on incremental maintenance for the rest of the release cycle.

Incremental maintenance will be very straightforward using the logical
changeset extraction code Andres is working on. Having two parallel
mechanisms for changeset extraction in one release seems like a waste
of time. Especially when one is known to be better than the other
already.

Given that we also want to do concurrent CLUSTER and ALTER TABLE ...
SET TABLESPACE using changeset extraction I think its time that
discussion happened on hackers.

--Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: dynamic background workers
Next
From: Simon Riggs
Date:
Subject: Re: Processing long AND/OR lists