Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD) - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD)
Date
Msg-id 1365170438.21865.YahooMailNeo@web162903.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD)  (Noah Misch <noah@leadboat.com>)
Responses Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD)
List pgsql-hackers
Noah Misch <noah@leadboat.com> wrote:

> The SQL commands I cited as responsible for creating or removing
> the fork all make a new relfilenode anyway.  Thus, "add" actually
> means creating the fork with the new relfilenode, and "remove"
> actually means omitting the fork from the new relfilenode.  The
> association between relfilenodes and relations is, of course,
> transactional.

The same argument applies to the currently-committed code.  The
goal is to not change a matview between zero-length and non-zero
length once the heap exists; but to only have this state change
when REFRESH replaces the heap in the style of CLUSTER, TRUNCATE,
ALTER TABLE with heap rewrite, or the new VACUUM FULL.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Drastic performance loss in assert-enabled build in HEAD
Next
From: Noah Misch
Date:
Subject: Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD)