Skip to content

Reject concurrent reindex of append-optimized indexes early - #2420

Open
reshke wants to merge 2 commits into
apache:mainfrom
reshke:fix-reindex-concurrently-ao-guard-20261124
Open

reshke wants to merge 2 commits into
apache:mainfrom
reshke:fix-reindex-concurrently-ao-guard-20261124

Conversation

@reshke

@reshke reshke commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

REINDEX INDEX CONCURRENTLY on an AO or AOCS table reaches the index validation scan after the replacement index has already been created. The table access method rejects validation, leaving an invalid but ready index on the coordinator and each segment. For example:

REINDEX INDEX CONCURRENTLY ric_ao_idx;
ERROR: index validate scan - feature not supported on appendoptimized relations

Reject the operation before creating replacement indexes when a selected index belongs to an append-optimized table. This also covers table, schema, database and partition reindexing while leaving ordinary REINDEX and temporary-table handling unchanged.

Add isolation2 coverage for AO and AOCS indexes, partitioned tables, schema and database commands, and the absence of leftover indexes on the coordinator and segments.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


REINDEX INDEX CONCURRENTLY on an AO or AOCS table reaches the index
validation scan after the replacement index has already been created.
The table access method rejects validation, leaving an invalid but ready
index on the coordinator and each segment. For example:

  REINDEX INDEX CONCURRENTLY ric_ao_idx;
  ERROR: index validate scan - feature not supported on appendoptimized relations

Reject the operation before creating replacement indexes when a selected
index belongs to an append-optimized table. This also covers table,
schema, database and partition reindexing while leaving ordinary REINDEX
and temporary-table handling unchanged.

Add isolation2 coverage for AO and AOCS indexes, partitioned tables,
schema and database commands, and the absence of leftover indexes on
the coordinator and segments.
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.

1 participant