Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
Дата
Msg-id 1964.1458234712@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()  (Teodor Sigaev <teodor@sigaev.ru>)
Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-committers
Teodor Sigaev <teodor@sigaev.ru> writes:
> GUC variable pg_trgm.similarity_threshold insead of set_limit()

If that's to be an actual GUC variable, it's not okay for set_limit()
to just do this:

    similarity_threshold = nlimit;

It should go through SetConfigOption(); compare for example
tsa_set_curcfg_byname().  Which would also mean you could drop the
range-checking code there, because guc.c would enforce it.

            regards, tom lane


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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Improve support of Hunspell
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()