]> 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:04:23 +0000 (11:04 +0200)
commitadd8bc9b8c31fd0c7acfd64a4e2af71ea7b6b58c
treee4f16ebfd0f7f2a013c40fe1bcca1b6b1e8a6f2d
parent2699fc035a75d0774c1f013e9320882287f78adb
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