Skip to content

Conversation

@Billiam
Copy link

@Billiam Billiam commented Oct 23, 2025

Index names can be wrapped in quotes in some circumstances, which breaks some index cleanup/relocation when cleaning the dump file.

This can happen when index names are selected manually, or when using rails' default index name generation when index fields containing SQL with a mix of case, ex:

add_index :my_table, 'name', '(deleted_at IS NULL)'

would create a raw dump with

--
-- Name: index_my_table_on_nam_and_deleted_at_IS_NULL; Type: INDEX
--

CREATE INDEX "index_my_table_on_name_and_deleted_at_IS_NULL" ON public.my_table USING btree (name, ((deleted_at IS NULL));

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