WAL-log the extension of a new empty MV heap which is being populated.
Kevin Grittner <kgrittn@postgresql.org>
WAL-log the extension of a new empty MV heap which is being populated. This page with no tuples is used to distinguish an MV containing a zero-row resultset of its backing query from an MV which has not been populated by its backing query. Unless WAL-logged, recovery and hot standby don't work correctly with what should be an empty but scannable materialized view. Fixes bugs reported by Fujii Masao in testing MVs on hot standby.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/matview.c | modified | +7 −1 |