Fix subquery reference to non-populated MV in CMV.
Kevin Grittner <kgrittn@postgresql.org>
Fix subquery reference to non-populated MV in CMV. A subquery reference to a matview should be allowed by CREATE MATERIALIZED VIEW WITH NO DATA, just like a direct reference is. Per bug report from Laurent Sartran. Backpatch to 9.3.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execMain.c | modified | +2 −1 |
| src/test/regress/expected/matview.out | modified | +6 −0 |
| src/test/regress/sql/matview.sql | modified | +6 −0 |