pgsql: Fix assertion if index is dropped during REFRESH CONCURRENTLY - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix assertion if index is dropped during REFRESH CONCURRENTLY
Date
Msg-id E1rWvHE-004kuz-53@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b73d216489e1ee480b19d6ad31b784ea33c352f3

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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Enhance libpqrcv APIs to support slot synchronization.
Next
From: Aleksander Alekseev
Date:
Subject: Re: pgsql: Generate syscache info from catalog files