Skip to content

Fix assertion if index is dropped during REFRESH CONCURRENTLY#1632

Open
reshke wants to merge 1 commit intoapache:mainfrom
reshke:cp_a45c950ae35e53de40_main
Open

Fix assertion if index is dropped during REFRESH CONCURRENTLY#1632
reshke wants to merge 1 commit intoapache:mainfrom
reshke:cp_a45c950ae35e53de40_main

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Mar 21, 2026

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

======

In CBDB, we backport this change for future-proofing and in sight of d42418a and general backporting of all security-related changes.

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
Copy link
Contributor

@avamingli avamingli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cherry-pick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants