Fix assertion if index is dropped during REFRESH CONCURRENTLY
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix assertion if index is dropped during REFRESH CONCURRENTLY When assertions are disabled, the built SQL statement is invalid and you get a "syntax error". So this isn't a serious problem, but let's avoid the assertion failure. Backpatch to all supported versions. Reviewed-by: Noah Misch
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/matview.c | modified | +5 −2 |
| src/test/regress/expected/matview.out | modified | +16 −0 |
| src/test/regress/sql/matview.sql | modified | +17 −0 |