I am trying to implement an index in postgres for wild card queries such as
SELECT * FROM TABLENAME WHERE COL1 LIKE '<text>%';
I know postgres offers gin and gist trigram indexing through pg_trgm extension. But, it stores the trigrams of the text in the index value. is there any way I can modify the implementation from trigram to digram or n-gram where n can be modified, in postgres ? It would be much preferred if there is a way to do it with GIN indexing. if not, any other alternatives are also much welcomed.