Skip to content

Conversation

@guptapratykshh
Copy link

Fix #1249

This PR fixes an issue where PostgresReindexGenerator was incorrectly concatenating all index names without delimiters, generating invalid SQL like REINDEX INDEX i1i2i3. PostgreSQL only supports one index per REINDEX INDEX statement, so the fix now randomly selects a single index using Randomly.fromList(indexes).getIndexName() instead of joining all indexes together.

@guptapratykshh
Copy link
Author

ping @robins

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.

Postgres Bug Fix - Incorrect Syntax for REINDEX

1 participant