]> 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:10 +0000 (11:04 +0200)
commitb73d216489e1ee480b19d6ad31b784ea33c352f3
treec482671e4ab16d1d26457c6e3972b0c9849c5b1f
parentd541ce3b6f0582723150f45d52eab119985d3c19
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