Created
January 4, 2018 17:35
-
-
Save mikepaszkiewicz/073440a413f71b37b1160db892ff9705 to your computer and use it in GitHub Desktop.
Snips: PostgreSQL - Create searchable text index on integer field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create index concurrently on transactions (order_number) USING GIN(order_number::text gin_trgm_ops) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment