]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix assertion if index is dropped during REFRESH CONCURRENTLY
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Feb 2024 09:01:30 +0000 (11:01 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Feb 2024 09:03:28 +0000 (11:03 +0200)
commit06f36bc01bf69f888896eb16025db8265b4df9be
tree27848685d30b103483335b7983deabb3fc488534
parentf2fdea198b3d0ab30b9e8478a762488ecebabd88
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
src/backend/commands/matview.c
src/test/regress/expected/matview.out
src/test/regress/sql/matview.sql