pg_trgm module: no convertion into Trigrams on one side when comparing

Поиск
Список
Период
Сортировка
От Janek Sendrowski
Тема pg_trgm module: no convertion into Trigrams on one side when comparing
Дата
Msg-id trinity-9c2d1528-5cc4-410d-ae7b-efc75fd10887-1384364270674@3capp-webde-bs17
обсуждение исходный текст
Ответы Re: pg_trgm module: no convertion into Trigrams on one side when comparing  (Amit Langote <amitlangote09@gmail.com>)
Список pgsql-general
Hi,
I'm using the pg_trgm module,
Is there a possibility not to convert one side of the string when comparing?
I need a kind of reference string containing only certain trigrams.
It's not possible to build every kind of string using the function.

example:
Code: Alles auswählen
SELECT show_trgm('abc');
show_trgm
-------------------------
{" a"," ab",abc,"bc "}
(1 row)

But I like to have only {'abc'} for example.

I would use this function: "similarity(text, text)"
Could it somehow work with explicit data-type definitions or maybe with putting the string in brackets or quoting?
Or do I have to change the source code?

Thanks for your help

Janek Sendrowski


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Theory question
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Partitioned table question