Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug
Дата
Msg-id CAPpHfduZEGYcj3-31ONbReCFDYah1RZKv3a3WRGV=1tN43Zrpw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug  (Jan Przemysław Wójcik <jan.przemyslaw.wojcik@gmail.com>)
Ответы Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-bugs
Hi!

On Tue, Nov 7, 2017 at 3:51 PM, Jan Przemysław Wójcik <jan.przemyslaw.wojcik@gmail.com> wrote:
Hi,

my statement about the function usefulness was probably too categorical,
though I had in mind the current name of the function.

I'm afraid that creating a function that implements quite different
algorithms depending on a global parameter seems very hacky and would lead
to misunderstandings. I do understand the need of backward compatibility,
but I'd opt for the lesser evil. Perhaps a good idea would be to change the
name to 'substring_similarity()' and introduce the new function
'word_similarity()' later, for example in the next major version release.

Good point.  I've no complaints about that.  I'm going to propose corresponding patch to the next commitfest.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company 

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

Предыдущее
От: Raphael Hertzog
Дата:
Сообщение: Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14890: Error grouping by same column twice using FDW