Useless removal of duplicate GIN index entries in pg_trgm

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Useless removal of duplicate GIN index entries in pg_trgm
Дата
Msg-id CAHGQGwEUmJ+Q0fd8eUJuE19-a4Hz1qtYHWSQ16avwfn8JxmL-A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Useless removal of duplicate GIN index entries in pg_trgm  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unsigned and signed chars in libpq API
Следующее
От: Gabriele Bartolini
Дата:
Сообщение: Italian PGDay 2012, Call for papers is now open