From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: counting algorithm for incremental matview maintenance |
Date: | 2013-05-17 00:11:11 |
Message-ID: | CA+TgmoaRcgCAtr_hFuvFOB68bSMG5aEFE88bzOMYMbq2N-YugA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, May 14, 2013 at 3:52 PM, Kevin Grittner <kgrittn(at)ymail(dot)com> wrote:
> We could drive the triggering of incremental maintenance off of the
> dependency information which is already stored, but for performance
> we probably want to add a new pg_class flag to indicate that the
> relation is referenced by a matview definition which specifies
> incremental update. That would allow a fast path for skipping
> other tests for DML on non-referenced relations, at the expense of
> some additional catalog updates on some DDL.
I'm afraid this might require creating a matview or updating the
definition of a matview to refer to different relations to take
AccessExclusiveLock on those relations, in order to avoid SnapshotNow
problems while updating this flag for those relations, and I think
that's probably unacceptable. Some thought may be needed here to come
up with a good solution.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2013-05-17 00:12:27 | Re: BUG #8167: false EINVAL -22 for opening a file |
Previous Message | Robert Haas | 2013-05-17 00:06:57 | Re: Extent Locks |