Skip to content

chore(search): drop retired Postgres document name search#4246

Draft
gbirman wants to merge 2 commits into
mainfrom
gbirman/macro-1989-cleanup-pg-document-name-search
Draft

chore(search): drop retired Postgres document name search#4246
gbirman wants to merge 2 commits into
mainfrom
gbirman/macro-1989-cleanup-pg-document-name-search

Conversation

@gbirman

@gbirman gbirman commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Stacked on #4244; draft until that's validated in prod so reverting it stays cheap. Removes the retired Postgres document name search now that it runs in OpenSearch: drops the idx_document_name_trgm GIN index (DROP INDEX CONCURRENTLY) and deletes the now-uncalled name_search document path. Keeps the pg_trgm extension (other indexes use it); two of the four pruned .sqlx entries were pre-existing orphans swept by cargo sqlx prepare.

gbirman added 2 commits June 22, 2026 13:57
Match document_name via match_phrase_prefix in the OpenSearch document query instead of the Postgres name_search ILIKE path, reusing the content query's owner/shared access filtering. Removes the slow owner-OR-ids ILIKE tail and the duplicated filter resolution.
Document name search runs in OpenSearch now, so remove the uncalled name_search::search_document_names path and drop the idx_document_name_trgm GIN index that backed its ILIKE query. Prunes the orphaned .sqlx cache entries.
@macro-application

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7e7f6b2a-463e-4ad3-913c-c21f77ba3e3e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from gbirman/macro-1989-search-move-name-search-into-opensearch to main June 22, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant