So I took a look at this, and I'm not sure how GIN would help with string wildcard prefix matches. It did just occur to me that you could have a b-tree comparator that sorted strings backwards to achieve that but of course that would incur two b-tree writes per value.
DUDE I'm going to have to try this. We work with millions of records and while we implement full-text indexing for human-readable fields, for something such as partial part number searches, this would be great.
29
u/TheMightyMegazord Sep 24 '20
https://www.postgresql.org/docs/13/gin-intro.html
Generalized Inverted Index.