Hi, After pg_trgm extracts the trigrams as GIN index keys, generate_trgm() removes duplicate index keys, to avoid generating redundant index entries. Also ginExtractEntries() which is the caller of pg_trgm does the same thing. Why do we need to remove GIN index entries twice? I think that we can get rid of the removal-of-duplicate code block from generate_trgm() because it's useless. Comments?
Regards, -- Fujii Masao -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers