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 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fb3836855ca12024f3d7432a4a04217073b1688c Modified Files -------------- src/backend/commands/matview.c | 7 +++++-- src/test/regress/expected/matview.out | 16 ++++++++++++++++ src/test/regress/sql/matview.sql | 17 +++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-)
